I noticed that Message-ID: <oprynnxazarz6bv7@news.west.cox.net> from
Babs Patel contained the following:
[color=blue]
>Once the names of songs and players are entered into their respective
>tables, is there a way to use php to enter data into the join table other
>than manually looking up the id's from song and player and entering those
>into song_play?[/color]
Query the database and use the results to populate something like drop
down boxes. On Submit the selections add a row to the join table.
However this could get really unweildy with large numbers of
songs/artists so you have to add some criteria to the initial query.
In practice though, would you not be doing this when you added new
songs? Something like:
Enter song
insert record into song table
enter player
If player exists, display player details
else prompt to enter player details and then insert record into artist
table.
Display player details
insert record into song_play table
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/