Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

RE: [PHP] mysql_free_result() question From: Kristian Duske (ml.duske <email protected>)
Date: 06/23/01

> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>