Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Can't access database
Google
Post new topic Reply to topic
Author Message
GuitarGod
 
 


Joined: 28 Dec 2006
Posts: 3

PostPosted: Fri Jan 26, 2007 7:06 pm Reply with quoteBack to top

Hello,

I've got a weird problem. None of my php scripts can access my database. Either my database details have been changed (with-out my knowledge), or my database doesn't exist (also with-out my knowledge).

How do i check if this is the case? and what do i need to do to remedy the situation?

Thanks
View user's profileSend private message
lku homer
 
 


Joined: 29 May 2006
Posts: 104

PostPosted: Fri Jan 26, 2007 8:15 pm Reply with quoteBack to top

First off make sure your script is correct. And for the sake of this problem make a little something like this:
Code:

<?php
mysql_connect("localhost", "dbuser", "dbpass")or die(mysql_error());
mysql_select_db("dbname")or die(mysql_error());
?>


If there is something wrong with the connection to the database, then 'mysql_error()' will tell you exactly what it is.

**Also**

Since you're in the A2T forums, I am guessing you have access to all of the MySQL files. Since you're worried about details changing, go into phpmyadmin, and change them back.
View user's profileSend private messageAIM AddressYahoo MessengerMSN MessengerICQ Number
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT