English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The odbc_free_result() function releases available idle resources associated with the result.
bool odbc_free_result ( resource $result_id )
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.
It always returns true
Number | Parameters and Description |
---|---|
1 | result_id Result Identifier |
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); ?>