PHP 4.0 Bug #3295 Updated: MYSQL_INSERT_ID not working
| From: | Bug Database | Date: | Thu, 27 Jan 2000 20:18:02 +0000 |
| Subject: | PHP 4.0 Bug #3295 Updated: MYSQL_INSERT_ID not working | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14965@lists.php.net to get a copy of this message | ||
ID: 3295
Updated by: torben
Reported By: arni@linux.is
Status: Closed
Bug Type: MySQL related
Assigned To:
Comments:
This isn't a bug; you've given mysql_insert_id() the result id from
the query instead of the link id from the connection--i.e., the value
returned by mysql_connect() or mysql_pconnect(). The code shown should
work if you either supply that value or supply no argument; if none is
given, the most recently opened link is assumed.
Full Bug description available at: http://bugs.php.net/?id=3295