If you want more of my pastes visit: https://randompaste.000webhostapp.com/index.html
--------------------------------------------------------------------------------------
<html>
<head>
<title>WELCOME</title>
<link rel="stylesheet" href="home.css">
</head>
<body>
<?php
include 'header.php';
include 'vars.php';
include 'sqls.php';
?>
<?php
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$result = $conn->query($ManufacturerSQL);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<h1>Welcome to " . $row["ManufacturerName"]. "</h1>";
}
} else {
echo "<h1>Welcome</h1><br/>";
}
// Get Product Info
$result = $conn->query($ProductSQL);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<p>" . trim($row["ProductDescription"], " ") . "<p>";
}
} else {
echo "0 results";
}
$conn->close();
?>
<p> Want more information? Click on the Unicorn to find out how to have your own Unicorn Dreams!
<a href="register.php">
<img src="/images/unicorn_dreams_1920.jpg" alt="Unicorn Dreams JPG">
</a>
</body>
</html>