mirror of
https://github.com/gamaio/lobli.git
synced 2025-08-13 10:18:45 +00:00
Move database connection to independent file
This commit is contained in:
4
Website/Include/PHP/db.php
Normal file
4
Website/Include/PHP/db.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB
|
||||
if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php');
|
||||
?>
|
Reference in New Issue
Block a user