Log in

View Full Version : Something wrong in my functions.php


Abronsyth
04-29-2012, 08:50 AM
Well, here is the problemetic area:
if(defined("SUBDIR")) include("../inc/config_forums.php");
else include("inc/config.php");

//Now connecting to the adoptables database
try{
$adopts = new Database(DBNAME, DBHOST, DBUSER, DBPASS, PREFIX);
}

On lines 6-12. Now, when trying to enter the ACP, here is what I am getting:
Could not connect to database, the following error has occurred:
SQLSTATE[HY000] [2005] Unknown MySQL server host 'DBHOST' (1)

---

Any clues as to what's wrong, and how to fix it?

Hall of Famer
04-29-2012, 01:23 PM
The original script is:


if(defined("SUBDIR")) include("../inc/config.php");
else include("inc/config.php");


Why is your functions.php different? Did you try to modify the script? o_o

Abronsyth
04-29-2012, 03:01 PM
Nope, didn't try to modify it...that's funny...huh...