Changing index.html to index.php

This commit is contained in:
Ubuntu
2019-04-16 18:45:55 -04:00
parent 33a1c49274
commit 6588c31ee6
5 changed files with 1 additions and 0 deletions

23
index.php Normal file
View File

@@ -0,0 +1,23 @@
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>';
// In the variables section below, replace user and password with your own MySQL credentials as created on your server
$servername = "localhost";
$username = "fighthubuser";
$password = "cC33dC8W";
// Create MySQL connection
$conn = mysqli_connect($servername, $username, $password);
// Check connection - if it fails, output will include the error message
if (!$conn) {
die('<p>Connection failed: <p>' . mysqli_connect_error());
}
echo '<p>Connected successfully</p>';
?>
</body>
</html>