cssfreakie Posted March 21, 2011 Share Posted March 21, 2011 Hi all, I am trying to structure my php files a bit, in an orderly way, so that i have a file that makes a connection with a database, another file that processes a query, another that validates etc. Now I was thinking to make another file to close the database connection. But on the other hand it's just a small snippet, and I could just put it in my template. Does anyone have any thought on this? Although i read connections are closes automatically, I also read that it can't harm to close it manually anyway. Cheers cssfreakie Link to comment https://forums.phpfreaks.com/topic/231311-mysqli_close-some-advice/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.