<html>
<body>
<?php
$conn = mysqli_connect ('localhost', 'db', '', 'db');
if (!$conn) {
die('Could not connect: '. mysqli_error());
}
echo 'connected to the database';
mysqli_close($conn);
?>
</body>
</html>
<body>
<?php
$conn = mysqli_connect ('localhost', 'db', '', 'db');
if (!$conn) {
die('Could not connect: '. mysqli_error());
}
echo 'connected to the database';
mysqli_close($conn);
?>
</body>
</html>




