PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<odbc_foreignkeysodbc_gettypeinfo>
view the version of this page
Last updated: Thu, 21 Aug 2003

odbc_free_result

(PHP 3>= 3.0.6, PHP 4 )

odbc_free_result -- Free resources associated with a result

Description

bool odbc_free_result ( resource result_id)

Always returns TRUE.

odbc_free_result() only needs to be called if you are worried about using too much memory while your script is running. All result memory will automatically be freed when the script is finished. But, if you are sure you are not going to need the result data anymore in a script, you may call odbc_free_result(), and the memory associated with result_id will be freed.

Note: If auto-commit is disabled (see odbc_autocommit()) and you call odbc_free_result() before commiting, all pending transactions are rolled back.



add a note add a note User Contributed Notes
odbc_free_result
rogersd at island dot net
06-Sep-2001 10:03
odbc_free_result() is also the way to avoid the dreaded "Too many open cursor" error.
mallsop at ind dot net
26-Apr-2000 03:44
Use odbc_free_result after every query, else the connection stays. (Win 2000)

<odbc_foreignkeysodbc_gettypeinfo>
 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST