R: [PHP][PEAR] PEAR::DB_Common::nextId()

From: Date: Thu, 15 Jan 2004 08:24:59 +0000
Subject: R: [PHP][PEAR] PEAR::DB_Common::nextId()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174631@lists.php.net to get a copy of this message
hi, thanks to Rory for his suggestion. sure "mysql_insert_id()" could help. but I was looking for some trick for accessing the result of that function without having to deal to "mysql_connect()" again. and i found it: PEAR::DB::getOnce("SELECT LAST_INSERT_ID()"); doesn't work perfectly but is ok. cheers alessandro -----Messaggio originale----- Da: Rory McKinley [mailto:rorym@nebula.co.za] Inviato: giovedi 15 gennaio 2004 8.06 A: Alessandro Vitale; php-general@lists.php.net Oggetto: Re: [PHP][PEAR] PEAR::DB_Common::nextId() On 14 Jan 2004 at 18:12, Alessandro Vitale wrote: > I would like to get the last insert id... anyone has some experience in > using the PEAR::DB_Common::nextId() ? > > any suggestion would be very much appreciated. > > alessandro > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi Alessandro Will mysql_insert_id() not help? Rory McKinley Nebula Solutions +27 82 857 2391 rorym@nebula.co.za "There are 10 kinds of people in this world, those who understand binary and those who don't" (Unknown)

« previous php.general (#174631) next »