php-gallery/ui/conn.php
2022-07-23 08:44:43 +01:00

9 lines
227 B
PHP

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