Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/db free result

Frees memory allocated by a SQL query.

Syntax

bool db_free_result(resource sqlresult [, type])

NOTE: This is a SQL function. See <winterpostwiki>Database support</winterpostwiki> 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);
$res = db_free_result($result);

See also


Winbinder Projects