#23989 [Opn->Bgs]: mysql_insert_id() stopped working in this release! Fatal!!! Please fix.
| From: | georg@php.net | Date: | Sun, 08 Jun 2003 11:59:52 +0000 |
| Subject: | #23989 [Opn->Bgs]: mysql_insert_id() stopped working in this release! Fatal!!! Please fix. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17169@lists.php.net to get a copy of this message | ||
ID: 23989
Updated by: georg@php.net
Reported By: doug at gfx dot com
-Status: Open
+Status: Bogus
Bug Type: PEAR related
Operating System: WIndows XP, Linux
PHP Version: 4.3.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Don't use reserved words for tablenames or quote them in backticks.
Previous Comments:
------------------------------------------------------------------------
[2003-06-03 11:01:26] doug at gfx dot com
$sql="INSERT INTO table (data) VALUES ('fred')";
$r=$db->query($sql);
$myindex=mysql_insert_id();
$myindex is null!!!!! This has worked up to and including 4.3.1. My
code has not changed.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23989&edit=1