English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP odbc_free_result() Function Usage and Example

PHP ODBC Reference Manual

The odbc_free_result() function releases available idle resources associated with the result.

Syntax

bool odbc_free_result ( resource $result_id )

Definition and Usage

Idle resources associated with the result.
You need to call odbc_free_result() only when you are concerned about using too much memory during script execution. All result memory will be automatically released when the script is completed.

Return Value

It always returns true

Parameter

NumberParameters and Description
1

result_id

Result Identifier

Example

Try the following example

<?php
   $input_ID = odbc_connect("DSN", "user_id", "pass_id");
   $result = odbc_exec($input_ID, "SELECT * FROM Products ORDER BY ProductName);
   
   odbc_free_result($result);
?>

PHP ODBC Reference Manual