General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 14th, 2003, 05:39 PM
Kip Kip is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Atlantam GA
Posts: 4 Kip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Kip
db error

Fatal error: Call to undefined function: message_die() in C:\live\html\db\db.php on line 88


I am recieveing this error...why?

Reply With Quote
  #2  
Old July 14th, 2003, 05:53 PM
Kip Kip is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Atlantam GA
Posts: 4 Kip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Kip
I guess I should be more specific.

I installed Mysql and I am sure this is an authenication error but I have matched the creds in the config.php file to what I put in the mysql ini file. I dont think it iwll help but here is line 88

}

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database");
}

Reply With Quote
  #3  
Old July 14th, 2003, 07:52 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Kip,

As far as I know, message_die() is not a valid PHP function. Is that one that you created yourself? If so, make sure you're including the file, where that function is located, in your script:

ie: include("../includes/funcs.php"); <-- Where message_die() is located.

Otherwise, you can make use of the die() function.

HTH!

PS: Welcome to DevArticles!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #4  
Old July 14th, 2003, 10:56 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Kip,

Frankie is right... message_die is definately not an intrinsic php function. If ever you are in doubt type the following into your browser:

http://www.php.net/<function_name>

Where <function_name> is the name of the function in question.
This will take you to the PHP online manual and language reference. You will quickly find out whether that function is valid or not... before long you will be addicted to that URL.

Digging even deeper, I venture to say that you probably are CP'ing (copying and pasting) someone elses code and you most likely did not copy their custom function "message_die".

You have some options here:

1. Include the file that contains the message_die() function.
2. Write your own message_die() function from scratch
3. Just use the die construct like this:
Code:
die(message_die("Could not connect to the database"); 
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > db error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT