Something wrong in my functions.php

Forum
Last Post
Threads / Messages

Abronsyth

A Headache Embodied
Member
Joined
Aug 25, 2011
Messages
1,012
Points
36
Location
NY
Mysidian Dollar
73,285
Well, here is the problemetic area:
PHP:
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?​
 
The original script is:

PHP:
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
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top