summaryrefslogtreecommitdiff
path: root/includes/database.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database.inc')
-rw-r--r--includes/database.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/database.inc b/includes/database.inc
index ba708c87c..99d8391a4 100644
--- a/includes/database.inc
+++ b/includes/database.inc
@@ -7,9 +7,9 @@
* just adjust the handlers to your needs.
*/
-function db_connect($host, $name, $pass, $base) {
- mysql_pconnect($host, $name, $pass) or die(mysql_Error());
- mysql_select_db($base) or die ("unable to select database");
+function db_connect($host, $user, $pass, $name) {
+ mysql_pconnect($host, $user, $pass) or die(mysql_Error());
+ mysql_select_db($name) or die ("unable to select database");
// NOTE: we are using a persistent connection!
}
@@ -48,6 +48,6 @@ function db_result($qid, $field = 0) {
#
# Automatically connect to database:
#
-db_connect($db_host, $db_name, $db_pass, $db_base);
+db_connect($db_host, $db_user, $db_pass, $db_name);
?>