mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-25 19:16:15 +00:00
UI remake
This commit is contained in:
parent
360a07a67b
commit
7077c44e84
9 changed files with 105 additions and 74 deletions
15
index.php
15
index.php
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue