Titlebar for index.php completed

This commit is contained in:
2019-04-18 00:18:00 -04:00
parent 7a91f187bb
commit 974ec9b655
6 changed files with 46 additions and 15 deletions

27
index.php Normal file → Executable file
View File

@@ -1,23 +1,20 @@
<html>
<head>
<title>PHP Test</title>
<title>FightHub - Home</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<?php echo '<p>Hello World</p>';
<form action="search.php">
<h1 class="title-text">FightHub</h1>
<input type="text" name="query" class="search" placeholder="Search..">
<input type="submit" name="submit" class="submit" value="Search">
</form>
// 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>
<!-- This is where php code for loading preview videos below the titlebar will go -->
</body>
</html>