PHP 4.0 Bug #8101: mysql_insert_id

From: Date: Mon, 04 Dec 2000 19:23:14 +0000
Subject: PHP 4.0 Bug #8101: mysql_insert_id
Groups: php.dev 
Request: Send a blank email to php-dev+get-40027@lists.php.net to get a copy of this message
From: tetherow@nol.org Operating system: Linux 2.2.16 (Debian) PHP version: 4.0.3pl1 PHP Bug Type: MySQL related Bug description: mysql_insert_id MySQL insert_id function returns 0 on valid insert. Using PHP 4.0.3pl1 and MySQL 3.23.28gamma. configured using --with-mysql=/usr/local $connection=mysql_pconnect($server, $username, $password); $cursor=mysql_db_query('staff', $query, $connection); $id=mysql_insert_id(); have also tried $id=mysql_insert_id($connection) In both instances $id is 0 yet the insert does succeed. -- Edit Bug report at: http://bugs.php.net/?id=8101&edit=1

« previous php.dev (#40027) next »