don't know about pear, but in case you can't do it, there's a mysql version-
LAST_INSERT_ID()
like this:
mysql> select last_insert_id();
+------------------+
| last_insert_id() |
+------------------+
| 262 |
+------------------+
1 row in set (0.04 sec)
-jack
-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 2:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PEAR DB Questions
I've got the docs you all mentioned in response to my earlier questions.
Thanks a ton! They were almost exactly what I needed.
There's only one thing that I can't figure out how to do with the
module. In PHP, there's a function 'mysql_insert_id()'. It returns the
Autoincriment ID of the last insert you performed. How do I get that
information with the PEAR DB module?
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]