unset() simply deletes the pointer to the data without releasing the space
held by the data.
mysql_free_result() releases the data storage pointed-to by the $result
pointer.
This is important because $result could be pointing-to a dataspace
containing a large number or rows returned by the mysql_query(). You WANT
to recover this dataspace.
-----Original Message-----
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] MYSQL/PHP what is the difference between unset() and
mysql_free_result() ?
Hello,
Maybe someone can tell me, the difference
b.e.
$result = mysql_query ($query);
unset($result);
#or better mysql_free_result($result);
tnx,
Bas Jobsen
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]