From 320ebe96e21e08d5fad1a4ccbef241d5defd92bc Mon Sep 17 00:00:00 2001 From: arun Date: Tue, 12 Dec 2006 11:34:09 +0000 Subject: added a config file (not under VC) --- db.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db.php') diff --git a/db.php b/db.php index bf82544..7f44350 100644 --- a/db.php +++ b/db.php @@ -6,9 +6,9 @@ function DB_open() { - global $DB; - if ( $DB = mysql_connect('mysql.nubati.net','doko', '$DoKo#.') ) - mysql_select_db('dokodb') or die('Could not select database'); + global $DB,$DB_user,$DB_host,$DB_database,$DB_password; + if ( $DB = mysql_connect($DB_host,$DB_user, $DB_password) ) + mysql_select_db($DB_database) or die('Could not select database'); else die (mysql_error()); -- cgit v1.2.3-18-g5258