RE: [PHP] mysql_free_result() question

From: Date: Sat, 23 Jun 2001 11:23:28 +0000
Subject: RE: [PHP] mysql_free_result() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54972@lists.php.net to get a copy of this message
> Do I mysql_free_result the $Query or the $Result? If it's $Result, would > this be the same as just going unset($Result)? mysql_free_result() frees the ressources that the MySQL server allocated for the results of your query. This is in the memory space of the MySQL server, while if you unset($Result), it only frees the MySQL result id (an integer if I remember corretly) in the memory space of your script. So, no, calling unset() is not the same to call mysql_free_result(). Hope this helps. Kristian

« previous php.general (#54972) next »