Name

mysql_free_result( )

Synopsis

mysql_free_result(results)

Use this to free the memory containing the results set given. The function returns true if it’s successful; it returns false if it’s unsuccessful.

...
mysql_free_result($results);
mysql_close( );
?>

There’s not much to this function. It merely flushes out the data for the location in memory referenced by the variable given.

Get MySQL in a Nutshell 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.