Re: mysql_insert_id

From: Date: Wed, 21 Jul 2004 12:17:15 +0000
Subject: Re: mysql_insert_id
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13787@lists.php.net to get a copy of this message
yes but this one don't works always Sonke Ruempler wrote:
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 (#13787) next »