RE: [PEAR] mysql_insert_id

From: Date: Wed, 21 Jul 2004 07:43:58 +0000
Subject: RE: [PEAR] mysql_insert_id
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13780@lists.php.net to get a copy of this message
Pietro Cottafavi wrote: > i have found the solution in the archive , next time i'll first search > in the archive ;) > in the docs there is nothing about this. > > BTW the better solution seems to be > $insertid = $db->getOne('SELECT LAST_INSERT_ID()'); Or: $id = mysql_insert_id($db->connection);

« previous php.pear.general (#13780) next »