Thursday, September 18, 2014

Connect to PHPMyAdmin SQL database connection file script

This is a test page

$message = '';
$db =  new MySQLi('localhost', 'root', 'root');
if ($db->connect_error) {
$message = $db->connect_error;
} else {
$message = 'Connection is OK';
}
?>

 echo "

$message

";
}?>

No comments:

Post a Comment