Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Something wrong in my functions.php (http://www.mysidiaadoptables.com/forum/showthread.php?t=3648)

Abronsyth 04-29-2012 08:50 AM

Something wrong in my functions.php
 
Well, here is the problemetic area:
PHP Code:

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

//Now connecting to the adoptables database 
try{
  
$adopts = new Database(DBNAMEDBHOSTDBUSERDBPASSPREFIX);


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:

PHP Code:

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...


All times are GMT -5. The time now is 09:52 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.