September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool mysql_free_result(mysql result result_handle) Frees memory taken up by a result handle.
Returns:
TRUE on success; FALSE otherwise
Description:
mysql_free_result() frees the memory used by a result handle, deleting the result handle in the process. In most cases, this function is unnecessary; PHP’s memory-management system automatically releases the memory used by result handles at the end of the script.
Version:
PHP 3+, PHP 4+
Example:
// Pretend that we have made a large query // but now we are done with the results and // want to free up memory to make another large query mysql_free_result ($mysql_result); |
Read now
Unlock full access