See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this ... resource $result ). mysql_free_result() will free all memory associated with the result identifier result .
php.net