mirror of
https://github.com/gamaio/lobli.git
synced 2025-01-09 10:12:51 +00:00
Move database connection to independent file
This commit is contained in:
parent
a4ad01fa86
commit
e7f4f22737
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');
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user