note 28886 added to function.mysql-insert-id
| From: | a_p at rack1 dot php dot net | Date: | Mon, 27 Jan 2003 06:02:14 +0000 |
| Subject: | note 28886 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42796@lists.php.net to get a copy of this message | ||
If one elects to use LAST_INSERT_ID() via mysql as opposed to using mysql_insert_id() that might
require you to send two inserts at once. I tried this via mysql_query() and I am getting an SQL
syntax error. However, when I try the query directly through mysql it works. Does mysql_query()
support multiple statements?
--
http://www.php.net/manual/en/function.mysql-insert-id.php
http://master.php.net/manage/user-notes.php?action=edit+28886
http://master.php.net/manage/user-notes.php?action=delete+28886
http://master.php.net/manage/user-notes.php?action=reject+28886