Re: mysql_insert_id
| From: | Pietro Cottafavi | Date: | Wed, 21 Jul 2004 07:24:44 +0000 |
| Subject: | Re: mysql_insert_id | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13779@lists.php.net to get a copy of this message | ||
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()');
thanks, Pietro.
Pietro Cottafavi wrote:
HI, there is a function like *mysql_insert_id in pear:DB ? thanks. *