SQL Errors. (Not sure what these mean)

Status
Not open for further replies.

rollins6020

New Member
Messages
8
Reaction score
0
Points
0
I received these errors the moment after I added news to the mainpage from my DKP site. Anyone help me out?http://www.toughlove.exofire.net/eqdkp

Warning
: date() expects parameter 2 to be long, string given in /home/toughlov/public_html/eqdkp/viewnews.php on line 45

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'dbhost' (4) in /home/toughlov/public_html/eqdkp/itemstats/includes/sqlhelper.php on line 30
string(37) "Unable to connect to SQL host: dbhost"

I was able to find a config.php file in my eqdkp folder and it reads like:

<?php

$dbtype = 'mysql';

$dbhost = 'localhost';

$dbname = 'toughlov_eqdkp';

$dbuser = ' '; (leaving this blank for my security)

$dbpass = ' '; (leaving this blank for my security)

$ns = 'www.toughlove.exofire.net';

$debug = '0';

$table_prefix = 'eqdkp_';

define('EQDKP_INSTALLED', true);
?>
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
The first error is your passing the wrong parameter into the date function.

The second one I'm going to guess you're missing a $ or something when it tries to connect to the database. It should be connecting to 'localhost' but instead it's trying to connect to 'dbhost' which if you look above in the config is $dbhost = 'localhost'.

Look around those lines in the code because something is wrong with both.

-Corey
 
Status
Not open for further replies.
Top