php - Can I close an unnamed mysql connection? -


i've been doing upgrades friends website. looks original programmer didn't close mysql connections.. or @ least can't find place closed them. site fell on morning , thought due web server turned out database server on loaded. i'm looking @ code being bit rusty php i'm not sure how close connections @ bottom of page.

mysql_connect(localhost,$dbuser,$dbpass); @mysql_select_db($dbase); 

this code in file don't want touch unless have to.. there way me close connection without giving name?

mysql_close($connectionname); 

thanks!

simply close without passing anything:

mysql_close(); 

if open 1 mysql connection, 1 gets closed.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -