$con = @mysql_connect("localhost","root","abc123"); if(!$con) { echo("could not connect"); die("not connect"); } else { echo("Sucessfuly connect"); } if(!@mysql_select_db("test")) { echo("Unable to connect"); } else { echo("Sucessfuly connect"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)