php-gallery/app/server/conn.php

21 lines
428 B
PHP
Raw Normal View History

<?php
/*
2022-09-14 16:43:06 +00:00
Connect to database
2022-09-20 10:12:32 +00:00
Make sure to enter your correct database details,
else it may cause issues with loading the page
*/
2022-09-20 10:12:32 +00:00
$conn_ip = "192.168.0.79:3306";
$conn_username = "uwu";
$conn_password = "fennec621";
$conn_database = "gallery";
try {
2022-09-14 16:43:06 +00:00
$conn = @mysqli_connect($conn_ip, $conn_username, $conn_password , $conn_database);
} catch (Exception $e) {
die("Unable to connect to the database");
}
2022-09-08 13:29:45 +00:00
session_start();