note 63304 added to function.mysql-insert-id
| From: | creepers at businessrealmz dot com | Date: | Sun, 19 Mar 2006 00:11:53 +0000 |
| Subject: | note 63304 added to function.mysql-insert-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106056@lists.php.net to get a copy of this message | ||
if mysql_insert_id() was inside a function make sure the mysql connection was global
eg.
function insertMyData(){
global $conn;
$q ="INSERT ....";
.......
}
----
Server IP: 66.163.161.117
Probable Submitter: 203.177.228.54
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php
Edit -- http://master.php.net/note/edit/63304
Del: integrated -- http://master.php.net/note/delete/63304/integrated
Del: useless -- http://master.php.net/note/delete/63304/useless
Del: bad code -- http://master.php.net/note/delete/63304/bad+code
Del: spam -- http://master.php.net/note/delete/63304/spam
Del: non-english -- http://master.php.net/note/delete/63304/non-english
Del: in docs -- http://master.php.net/note/delete/63304/in+docs
Del: other reasons-- http://master.php.net/note/delete/63304
Reject -- http://master.php.net/note/reject/63304
Search -- http://master.php.net/manage/user-notes.php