php-general | 2001062
Date: 06/23/01
- Next message: Kristian Duske: "[PHP] RE: [PHP-DB] Design conundrum..."
- Previous message: George Alexander: "Re: [PHP] math question"
- In reply to: Chris Cameron: "[PHP] mysql_free_result() question"
- Next in thread: Richard Lynch: "Re: [PHP] mysql_free_result() question"
- Reply: Richard Lynch: "Re: [PHP] mysql_free_result() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Kristian Duske: "[PHP] RE: [PHP-DB] Design conundrum..."
- Previous message: George Alexander: "Re: [PHP] math question"
- In reply to: Chris Cameron: "[PHP] mysql_free_result() question"
- Next in thread: Richard Lynch: "Re: [PHP] mysql_free_result() question"
- Reply: Richard Lynch: "Re: [PHP] mysql_free_result() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

