mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-24 10:46:16 +00:00
Remaking file structure for easier updating
This commit is contained in:
parent
e7a2284809
commit
d897215023
17 changed files with 119 additions and 103 deletions
20
app/conn.php
Normal file
20
app/conn.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/*
|
||||
Connect to database
|
||||
|
||||
Make sure to enter your correct database details,
|
||||
else it may cause issues with loading the page
|
||||
*/
|
||||
|
||||
$conn_ip = "192.168.0.79:3306";
|
||||
$conn_username = "uwu";
|
||||
$conn_password = "fennec621";
|
||||
$conn_database = "gallery";
|
||||
|
||||
try {
|
||||
$conn = @mysqli_connect($conn_ip, $conn_username, $conn_password , $conn_database);
|
||||
} catch (Exception $e) {
|
||||
die("Unable to connect to the database");
|
||||
}
|
||||
|
||||
session_start();
|
Loading…
Add table
Add a link
Reference in a new issue