Just wanted to re-iterate previous comment on receiving NULL
or 0 return statement from calling mysql_insert_id() after
insert statement.
If you have multiple mysql connections (i.e. mysql_connect()
or mysqli_connect()) on the page you will need to specify
the the connection you are using when calling this
function!
I.e.
mysql_insert_id($MY_CONN);
----
Server IP: 69.147.83.197
Probable Submitter: 203.6.132.1
----
Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.p
hp
Edit -- https://master
.php.net/note/edit/78439
Del: integrated -- h
ttps://master.php.net/note/delete/78439/integrated
Del: useless -- http
s://master.php.net/note/delete/78439/useless
Del: bad code -- htt
ps://master.php.net/note/delete/78439/bad+code
Del: spam -- https:/
/master.php.net/note/delete/78439/spam
Del: non-english --
https://master.php.net/note/delete/78439/non-english
Del: in docs -- http
s://master.php.net/note/delete/78439/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78439
Reject -- https://mast
er.php.net/note/reject/78439
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|