Hi,
Just wanted to gather some opinions on whether it's bad practice to open and close connections to the database more than once in one php file?
Should I just open the connection once and close it once?
Will this considerably affect page load time?
It's just that I have a news system in which I want to develop a 'headline manager' for managing news articles displayed on the homepage.
This means i will have say (higher up on the page) the very latest database entry and further down the next 4 entries.
Would it be best to open and close the connection for the latest entry query and then open up the connection again further down?
Thanks for your time,
Ben