php-gallery/ui/conn.php
2022-07-25 16:13:26 +01:00

9 lines
242 B
PHP

<?php
// Attempt database connection
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
// If connecton failed, notify user
if ($conn->connect_error) {
echo "<p class='alert alert-low'>Could not connect to database</p>";
}
?>