dashbyictfd (November 30, 1999 at 12:00 am)
if(!$info_set){die("Unable to connect."); } Khant Thu Linn (November 30, 1999 at 12:00 am)
Hi I do exactly same with you. But I got parse error. I would like to know why it happen.if(!$connection) { die("Unable to connect to page"); } generalpcinformation (November 30, 1999 at 12:00 am)
Is this better or still not good: /*Connect to database */ $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); /* check connection */ if ($mysqli -> connect_errno){ echo "Failed to connect to MYSQL database: (" . $mysqli -> connect_errno .")"; exit();} |