eMonk Posted May 28, 2011 Share Posted May 28, 2011 When would you use mysql_close or mysql_free_result and why? Right now I'm ending my connections with mysql_close() but when would you use mysql_free_result? I read the php manual online for these 2 functions but still can't wrap my head around when to use which or if I should be using both. Quote Link to comment https://forums.phpfreaks.com/topic/237693-mysql_close-mysql_free_result/ Share on other sites More sharing options...
awpti Posted May 29, 2011 Share Posted May 29, 2011 While this is the wrong section, the proper usage would be when dealing with extremely large datasets. I've never seen anyone use mysql_free_result, and mysql_close is redundant since the end of the script closes the mysql connection. Quote Link to comment https://forums.phpfreaks.com/topic/237693-mysql_close-mysql_free_result/#findComment-1221946 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.