MySQL Connection Test : mysqli_connect « MySQL Database « PHP
- PHP
- MySQL Database
- mysqli_connect
MySQL Connection Test
<html>
<head>
<title>MySQL Connection Test</title>
</head>
<body>
<h2>
<?php $connection = mysql_connect( "localhost", "root", "" )
or die( "Sorry - unable to connect to MySQL" );
echo( "Congratulations - you connected to MySQL" );
?>
</h2>
</body>
</html>
Related examples in the same category