MYSQL/PHP what is the difference between unset() and mysql_free_result() ? II
| From: | Bas Jobsen | Date: | Tue, 18 Sep 2001 13:19:01 +0000 |
| Subject: | MYSQL/PHP what is the difference between unset() and mysql_free_result() ? II | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12544@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.
What about an overwrite? Will this also overwrite the dataspace?
b.e.:
$result=mysql_query($query1);
mysql_free_result($result);
$result=mysql_query($query2);
mysql_free_result($result);
Does the first mysql_free_result make any sense here?
Tnx,
Bas Jobsen