mysql_free_result(result)

Description: Frees all memory in use by the result pointer result.

Note: It is not necessary to call mysql_free_result() unless queries return large resultsets and occupy a large amount of memory. Result memory is automatically freed up when the script finishes executing.

Returns TRUE on success; FALSE otherwise.

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.