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 Quote Link to comment 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... Quote Link to comment 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.