> 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! >
Firstly you never said which db ? I'll assume mysql, check out mysql_insert_id > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php