note 16856 added to function.mysql-free-result

From: Date: Fri, 16 Nov 2001 00:09:40 +0000
Subject: note 16856 added to function.mysql-free-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-20897@lists.php.net to get a copy of this message
If you use the result set of a insert query, you get a warning message. // connect // do an insert $result = mysql_query("insert into table1(col1) values(1)"); // free a result mysql_free_result($result); // a warning is generated Warning: Supplied argument is not a valid MySQL result resource in your_source.php on line line_number php-mysql-4.0.4pl1-9 mysql-3.23.36-1 RedHat 7.1 -- http://www.php.net/manual/en/function.mysql-free-result.php http://master.php.net/manage/user-notes.php?action=edit+16856 http://master.php.net/manage/user-notes.php?action=delete+16856 http://master.php.net/manage/user-notes.php?action=reject+16856

« previous php.notes (#20897) next »