Forum Moderators: open
Table animals:
id name species
1 cookie 1
2 james 2
3 max 2Table species:
id name
1 rabbit
2 dog
would produce a form/s that allows
1) editing the species table
2) editing the animals table whereby you're given the option to either enter an existing species (via a select box or similar) or create a new one.
Am thinking that the foreign keys could be detected (if using InnoDB) or configured at the start (if using MyISam)
Someone must have come up with something like this & more complicated by now but i can't seem to find one, or i'm looking in the wrong places...
Any suggestions appreciated!
Now, if you try inserting some data into the branches table, phpMyAdmin will, instead of allowing you free-form entry into the cid field, provide you with a drop-down selection list of all the cname values from the clients table, thus making it impossible for you to enter an incorrect or non-existent client ID.