<?php
// index.php
$config['db'] = $_GET['db'];
include('functions.php');
$data = GrabData($_GET['uid']);
// functions.php
require_once('config.php');
// config.php
if ($config['db'] == "1") {
/* SQL Connection Info */
$sql['host'] = 'localhost';
$sql['user'] = 'user';
$sql['pass'] = 'pass';
$sql['db'] = 'db';
}
?>