#23989 [NEW]: mysql_insert_id() stopped working in this release! Fatal!!! Please fix.
| From: | doug at gfx dot com | Date: | Tue, 03 Jun 2003 16:01:26 +0000 |
| Subject: | #23989 [NEW]: mysql_insert_id() stopped working in this release! Fatal!!! Please fix. | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-16951@lists.php.net to get a copy of this message | ||
From: doug at gfx dot com
Operating system: WIndows XP, Linux
PHP version: 4.3.2
PHP Bug Type: PEAR related
Bug description: mysql_insert_id() stopped working in this release! Fatal!!! Please fix.
$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 bug report at http://bugs.php.net/?id=23989&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23989&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23989&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23989&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23989&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23989&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23989&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23989&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23989&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23989&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23989&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23989&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23989&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23989&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23989&r=gnused