quick newbie q: mysql_insert_id()
| From: | Christopher J. Mackie | Date: | Mon, 05 Jul 2004 18:29:12 +0000 |
| Subject: | quick newbie q: mysql_insert_id() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189740@lists.php.net to get a copy of this message | ||
If I want to use PEAR DB to handle my database connections, how do I
retrieve the recordID (primary key) added when I run an INSERT query?
mysql_insert_id($db_object) doesn't seem to work if the object is PEAR, and
the PEAR docs don't seem to show the same function.
Tx, --CJ