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
Post a Comment