Simmo Posted December 26, 2006 Share Posted December 26, 2006 HiIs there anything wrong with opening several database connections depending on if statements as long as there is a mysql_close() tag at the bottom of the page.I have seen a neater way of opening and closing using a function call but it will take ages the go through all my pages to change them.ThanksNeil Link to comment https://forums.phpfreaks.com/topic/31878-opening-and-closing-mysql-conections/ Share on other sites More sharing options...
ToonMariner Posted December 26, 2006 Share Posted December 26, 2006 if you don't have persistent connections then the connections are closed at the end of teh script automatically - but closing them manually is IMO good practice when using multiple connections... Link to comment https://forums.phpfreaks.com/topic/31878-opening-and-closing-mysql-conections/#findComment-147940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.