Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

RE: [PHP] PEAR DB Questions From: Matthew Walker (matt <email protected>)
Date: 09/26/01

Thanks. That will work quite nicely.

-----Original Message-----
From: Jack Dempsey [mailto:dempsejn <email protected>]
Sent: Wednesday, September 26, 2001 1:20 PM
To: Matthew Walker; php-general <email protected>
Subject: RE: [PHP] PEAR DB Questions

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:matt <email protected>]
Sent: Wednesday, September 26, 2001 2:24 PM
To: php-general <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: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>

--- 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: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>