RE: [PHP-DB] Last ID from database? From: Hutchins, Richard (Richard.Hutchins <email protected>)
Date: 06/26/02

Chris,

        $insertID = mysql_insert_id();

Check http://www.php.net/manual/en/function.mysql-insert-id.php for
additional info.

Rich

-----Original Message-----
From: Chris Payne [mailto:chris <email protected>]
Sent: Wednesday, June 26, 2002 3:57 PM
To: php-db <email protected>
Subject: [PHP-DB] Last ID from database?

Hi there everyone,
 
How Can I grab just the LAST ID from a database in MySQL with PHP
easily?
 
Thanks you :-)
 
Chris
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002
 

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php