2013-08-11 21:21:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// DBSettings
|
|
|
|
|
2014-03-27 21:30:41 +00:00
|
|
|
$apidb = new mysqli('localhost', 'api', 'password', 'api'); // Connect to main APIDB
|
2013-08-11 21:21:53 +00:00
|
|
|
if($apidb->connect_errno > 0) die('Unable to connect to database [' . $apidb->connect_error . '] - Check dbsettings.php');
|
|
|
|
|
2014-03-27 21:30:41 +00:00
|
|
|
$shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB
|
2013-08-11 21:21:53 +00:00
|
|
|
if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php');
|
|
|
|
|
|
|
|
?>
|