vijdev Posted July 5, 2010 Share Posted July 5, 2010 hi, when to use mysql_free_result()? is it always mandatory?..what happens if it is not used? what are the dangers of using and not using? thanks, vij Quote Link to comment https://forums.phpfreaks.com/topic/206762-mysql_free_result/ Share on other sites More sharing options...
trq Posted July 5, 2010 Share Posted July 5, 2010 From the man: mysql_free_result() only needs to be called if you are concerned about how much memory is being used for queries that return large result sets. All associated result memory is automatically freed at the end of the script's execution. Quote Link to comment https://forums.phpfreaks.com/topic/206762-mysql_free_result/#findComment-1081283 Share on other sites More sharing options...
vijdev Posted July 5, 2010 Author Share Posted July 5, 2010 anything related to security? Quote Link to comment https://forums.phpfreaks.com/topic/206762-mysql_free_result/#findComment-1081287 Share on other sites More sharing options...
trq Posted July 5, 2010 Share Posted July 5, 2010 No. Quote Link to comment https://forums.phpfreaks.com/topic/206762-mysql_free_result/#findComment-1081289 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.