note 21766 added to function.mysql-insert-id

From: Date: Sun, 26 May 2002 02:13:30 +0000
Subject: note 21766 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-31038@lists.php.net to get a copy of this message
boomkers: I believe you are giving the wrong argument to mysql_insert_id(). You should not be passing $bida (the value returned from mysql_query in your example). Instead, you should be passing the value returned by your call to mysql_connect(). -- http://www.php.net/manual/en/function.mysql-insert-id.php http://master.php.net/manage/user-notes.php?action=edit+21766 http://master.php.net/manage/user-notes.php?action=delete+21766 http://master.php.net/manage/user-notes.php?action=reject+21766

« previous php.notes (#31038) next »