Jump to content

mysqli_close() some advice


cssfreakie

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.