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. 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. 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
Archived
This topic is now archived and is closed to further replies.