|
I am creating a gig and band booking system and i need some help.
There are three tables bands, gigs and bandgig, the bands table holds information about the band. The gig table holds information about the gig and bandgig holds information about what bands are playing at what gigs. It uses the gig id and the band id to assign bands to gigs, it also has the position of the band in the line up, 1 through 6, 1 being the headlining band.
When a new gog is added the bands are chosen form dropdown lists, this is not a problem, but when i go to edit the gig i need the band that is playing to be selected in the drop down list. But it also has to be in the right drop down list, my idea was to have an array that held the band ID, name, and position and then use a foreach llop and an if statement, how can i create that array though?
any ideas, or any ideas on how is best to solve this problem?
|