php-gallery/ui/conn.php

9 lines
242 B
PHP
Raw Normal View History

2022-07-23 07:44:43 +00:00
<?php
// Attempt database connection
2022-07-25 15:13:26 +00:00
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
2022-07-23 07:44:43 +00:00
// If connecton failed, notify user
2022-07-24 09:43:54 +00:00
if ($conn->connect_error) {
2022-07-23 07:44:43 +00:00
echo "<p class='alert alert-low'>Could not connect to database</p>";
}
?>