UI remake

This commit is contained in:
Michał Gdula 2022-07-21 19:42:03 +01:00
parent 360a07a67b
commit 7077c44e84
9 changed files with 105 additions and 74 deletions

View file

@ -10,15 +10,23 @@
<body>
<?php include('ui/header.php'); ?>
<h1>The website is currently being reconstructed! Please be patient!</h1>
<p>Fluffy's test website on uploading images to a database!</p>
<?php
if ($_GET["del"] == "true") {
echo "<p class='alert alert-high'>Successfully deleted image: ".$_GET['id']."</p>";
}
?>
<div class="info-text center">
<h1>Fluffys Super Duper Secrete Project!</h1>
<p>Fluffy's test website on uploading images to a database!</p>
</div>
<?php
// Attempt database connection
$conn = mysqli_connect("localhost", "uwu", "password", "swag");
// If connecton failed, notify user
if (!$conn) {
echo "<p class='alert fail'>Could not connect to database</p>";
echo "<p class='alert alert-high'>Could not connect to database</p>";
}
@ -40,7 +48,6 @@
?>
</div>
<?php include('ui/footer.php'); ?>
</body>
</html>