note 55847 deleted from function.mysql-insert-id by victor
| From: | victor@php.net | Date: | Mon, 15 Aug 2005 16:17:35 +0000 |
| Subject: | note 55847 deleted from function.mysql-insert-id by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93683@lists.php.net to get a copy of this message | ||
Note Submitter: info at icod dot de
Reason: useless
----
If your table layout is like
id , field1 , field2 , fieldn
you can use
SELECT max(id) FROM tablename;
to receive the HIGHEST inserted id , which also should be the same as the last inserted id