php-gallery/app/server/conn.php

21 lines
424 B
PHP

<?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) {
header("location: error.php?e=conn");
}
session_start();