| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
|
Hi ..
I dont why my db does that with me .. see this page plz: http://www.ninehours.com/tutorials/4/ and i dont know how to contact with hosting support .. pleeeeeease help me .. i gave up Thanx in advance .. |
|
|
|
|
|
#2 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
830 posts
Gave thanks: 2
Thanked 7 times
|
Re: What's wronge with my database??!!!
Modify the script
This line: mysql_select_db("$dbname") or die( "Unable to select database."); Change it to: mysql_select_db("$dbname") or die( mysql_error() ); P.S. Have you made sure that you already granted the user privileges for the database? Sometimes people create the database, create the user, but forget to grant the user privileges to the database. This might very well be it. In any case, just modify the php line to what I gave you and when you run the script it will give you a specific reason why it couldn't connect to the database.
__________________
Nobody doing nothing |
|
|
|
|
|
#4 (permalink) | |
|
Web Designer
Resident.
|
Re: What's wronge with my database??!!!
Quote:
__________________
I'm a web designer that founded the company Asheboro Creative. You can follow me on Twitter, add me on Myspace, or read my articles on Asheboro Tech. |
|
|
|
|
|
|
#5 (permalink) | |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
830 posts
Gave thanks: 2
Thanked 7 times
|
Re: What's wronge with my database??!!!
Quote:
for example, if you had: mysql_query("SELECT * FROM table_doesnt_exist") or die ( mysql_error() ); The script will die when it tries to execute the query and print to the screen that the table doesn't exist.
__________________
Nobody doing nothing |
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
|
Re: What's wronge with my database??!!!
Hi David .. Thanks! really i appercaite what u do 4 me ..
![]() aha Mr.Fern.. i got it .. but i think the error doesnt clear .. i'm gonna die .. ![]()
__________________
.. My Blog .. |
|
|
|
|
|
#7 (permalink) |
|
The Mommy Slayer
Seasoned Poster
Joined in Mar 2005
Lives in Pinellas, FL
Hosted on Benz
83 posts
Gave thanks: 0
Thanked 0 times
|
Re: What's wronge with my database??!!!
I think what Mr Fern is saying (correct me if I'm wrong Fern) is that it will let you know why it is failing not to fix the issue.
__________________
"Your heart will always make itself known through your words." http://www.codedfuture.com A not-for-profit bringing the world to needy kids and families. See how you can help. |
|
|
|
|
|
#8 (permalink) |
|
All Ur Base R Belong 2 Us
Excelling Contributor
Joined in Feb 2005
Lives in Vegas & New York
830 posts
Gave thanks: 2
Thanked 7 times
|
Re: What's wronge with my database??!!!
That's exactly what I'm saying. He can find out the reason it can't select the database instead of a generic message.
__________________
Nobody doing nothing |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
|
Re: What's wronge with my database??!!!
BigDaddy
mr_fern guyz i would let u know something .. i'm arabian gurl .. and i dont understand very well .. and i know the database problem not from me .. from SURPASS .. so to put a topic here .. the only solution that i've .. so plz guyz excuse me .. and explain in easy way .. believe i try the best to understand and eolve the problem .. now i'm completely unaware what the problem is .. ![]() thanks ..
__________________
.. My Blog .. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|