PHP4.0.1 pl2 and mysql_free_result command

From: Date: Thu, 07 Sep 2000 03:46:15 +0000
Subject: PHP4.0.1 pl2 and mysql_free_result command
Groups: php.general 
Request: Send a blank email to php-general+get-15655@lists.php.net to get a copy of this message
Is there a problem with this command in the PHP4.0.1 pl2 version? It worked under PHP30.16 and now I'm trying to use this command and I get the error: Warning: Supplied argument is not a valid MySQL result resource in .... on line 21 The code looks like this: // This is my connection function $db = db_connection(); $result = mysql_query($sql, $db); if ($result) { $p1ID = mysql_insert_id($db); } else { $error = ".."; } mysql_free_result($result); Any ideas? Sam

« previous php.general (#15655) next »