note 7928 added to mysql_insert_id

From: Date: Sun, 20 Aug 2000 22:34:04 +0000
Subject: note 7928 added to mysql_insert_id
Groups: php.notes 
Request: Send a blank email to php-notes+get-2800@lists.php.net to get a copy of this message
This seems to have just appeared in PHP4 pl2 though perhaps it is library dependent. Anyways, contrary to the docs, with PHP4 running mysql_insert_id($result) always gives an invalid link identifier warning when passed the result from the previous query. If you leave the link identifier out then it works fine. This is contrary to what the docs suggest - they say both should be fine and really, for safety I think you should always expressly be passing a link identifier. http://www.php.net/manual/function.mysql-insert-id.php

« previous php.notes (#2800) next »