I've seen other responses to your request answer with some VERY UGLY methods to get the last id.
Instead, use mysql_insert_id() which was created specifically for the info you need. ----- Original Message ----- From: Kelly Meeks <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 17, 2002 1:15 PM Subject: [PHP] mysql quickie.. Hi folks, I need to get the next auto_increment value of a mysql table thru php. Looking at my mysql manual, it makes reference to a last_insert_id() function? How would I use this via php, or is there some other way to do it? Thanks Kelly -- 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