RE: [PHP-DB] Last ID from database?
| From: | Hutchins, Richard | Date: | Wed, 26 Jun 2002 20:01:25 +0000 |
| Subject: | RE: [PHP-DB] Last ID from database? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20144@lists.php.net to get a copy of this message | ||
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@planetoxygene.com]
Sent: Wednesday, June 26, 2002 3:57 PM
To: php-db@lists.php.net
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