db_free_result

bool db_free_result (resource sqlresult [, type])

Frees memory allocated by a SQL query.

NOTE: This is a SQL function. See Database Support for more information.

Arguments

sqlresult is the resource handle returned from a SQL query.

Result

The function returns TRUE if successful or FALSE otherwise.

Example

// List the field(column) "Tel./Fax" in mytable

$result = db_query("SELECT 'Tel./Fax' FROM mytable");
$tel_fx_nrs = db_fetch_array($result);


See also

db_query
Database functions
Database support