I'm creating a form that puts data into two different tables in the
database. I was wondering how to get the "ID" from the first table and, in
the "background", associate it with the second table?
any help is GREATLY appreciated!
Check out mysql_insert_id() -- there's an example in the manual of how to determine what was the ID of the row you just inserted.
http://www.php.net/mysql_insert_id
FYI, this page was easy to find searching the PHP manual functions for "mysql id" -- perhaps a timely reminder that you should search the manual before posting a question???
Come back if you need more help after that.
Justin French
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php