Connecting user
<?php
$domain = "localhost";
$user = "userName";
$password = "password";
$conn = mysql_connect( $domain, $user, $password );
if($conn)
{
$msg = "Congratulations $user, You connected to MySQL";
}
?>
<html>
<head>
<title>Connecting user</title>
</head>
<body>
<h3>
<?php echo( $msg ); ?>
</h3>
</body>
</html>
Related examples in the same category