> > 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().
I could be wrong, and often am :-), but I believe that PHP4 "knows" about
MySQL resources, and if you don't have any variables capable of accessing
them any more (IE, you did unset($result)), then it's smart enough to do the
mysql_free_result for you...
This is, however, no excuse for you not writing less sloppy code in the
first place, now that you are educated enough to know what you are doing.
:-) Use mysql_free_result() if the memory de-allocation is important to
you.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General 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]