This is for some kind of proof of concept design, to make everything work, but do not want to have the full code. For my database, I tried to get the true foreign key relationship using innoDB but could not get it.
Instead of using foreign keys, I decided to just pull out mysql_insert_id () after the insertions, saving it as a variable, and then putting that variable in a related table.
This is terrible? Everything seems to work fine, and I can attach and bind IDs as needed. What are the benefits of using foreign keys my method gives me (besides updating / removing cascading)?
source share