How do you use this in a script? I've seen it mentioned a number of times but haven't seen it in practice.
For example, say there are three tables:
Both Tables 1 and 2 have data inserted into them from a form.
Both use auto_increment on their primary keys _id.
Table 3 has both primary keys from these two tables as foreign keys.
How do you get the primary keys into Table 3 in the same script?
I realize that we probably need to use mysql_insert_id() but I can't work out how?
Thanks for any help.
Oops! I promise to follow the links in the future ...