Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2012, 08:50 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 116,922
Abronsyth is on a distinguished road
Default 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?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #2  
Old 04-29-2012, 01:23 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 391,722
Hall of Famer is on a distinguished road
Default

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
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-29-2012, 03:01 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 116,922
Abronsyth is on a distinguished road
Default

Nope, didn't try to modify it...that's funny...huh...
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Item Functions - help! Missy Master Questions and Supports 4 06-30-2014 08:50 PM
Database functions? Infernette Questions and Supports 8 07-10-2013 12:13 PM
Problem whit functions.php edition Jocla Questions and Supports 8 03-03-2013 12:28 PM
Suggestions for default Item functions Hall of Famer Suggestions and Feature Requests 36 01-14-2012 09:21 AM
image under functions.php PokePets Questions and Supports 4 08-09-2010 07:46 AM


All times are GMT -5. The time now is 12:47 AM.

Currently Active Users: 15458 (0 members and 15458 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636