Re: mysql quickie..
| From: | Richard Emery | Date: | Wed, 17 Apr 2002 18:46:46 +0000 |
| Subject: | Re: mysql quickie.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93371@lists.php.net to get a copy of this message | ||
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 <meeks@rightangleinc.com>
To: <php-general@lists.php.net>
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