RE: [PHP-DB] MYSQL/PHP what is the difference between unset() and mysql_free_result() ?
| From: | Rick Emery | Date: | Wed, 05 Sep 2001 21:32:13 +0000 |
| Subject: | RE: [PHP-DB] MYSQL/PHP what is the difference between unset() and mysql_free_result() ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12187@lists.php.net to get a copy of this message | ||
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:bas@startpunt.cc]
Sent: Wednesday, September 05, 2001 4:00 PM
To: php-db@lists.php.net
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: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net