September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool odbc_free_result(resource result) Frees query memory.
Returns:
Always returns TRUE
Description:
Frees any memory associated with the result identifier. odbc_free_result() is a paranoia measure when you want to free the memory associated with your result identifier before the script has finished. The memory is cleared when the script is finished anyway. If you have odbc_autocommit() disabled, any pending transactions are rolled back when odbc_free_result() is called.
Version:
Existing since version 3.0.6
Example:
$db = odbc_connect("DSN","user","pass");
$result = odbc_exec($db,"SELECT * FROM Products ORDER BY ProductName");
odbc_free_result($result);
|
Read now
Unlock full access