Detecting Disconnect from Mysql

admin

Administrator
Staff member
If i have the code

$link_id = mysql_connect("localhost","root","xxxxx");

if (!$link_id)
{
die();
}

further down if Mysql disconnects for some reason? will the if statement still be ture so that i can check it every so offent?

thanx
 
Back
Top