1
0
mirror of https://github.com/gamaio/lobli.git synced 2024-12-22 19:52:40 +00:00

Move database connection to independent file

This commit is contained in:
alopexc0de 2014-06-26 20:38:07 -04:00
parent a4ad01fa86
commit e7f4f22737

View 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');
?>