icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » What's wronge with my database??!!!

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old February 18th, 2006, 12:08 AM   #10 (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??!!!

I apologize that you weren't following what I was saying.

What I'm suggesting:

Edit the php code, changing:
mysql_select_db("$dbname") or die( "Unable to select database.");

to:
mysql_select_db("$dbname") or die( mysql_error() );

Then re-run the create.php script and tell us what displays on the screen
__________________
Nobody doing nothing
mr_fern is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 18th, 2006, 12:15 AM   #11 (permalink)
The Mommy Slayer
Seasoned Poster
 
BigDaddy's Avatar
 
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??!!!

Sorry if we upset you in anyway. That was not my intention at all. It's simply to try and explain what was being said and ultimately to help you fix the issue. The code posted by Fern will cause the database to give you a message telling you what is causing the problem when you go to the webpage. Once you get that error message for us it will be alot easier to help you solve the issue.
I hope we aren't just being more confusing.
__________________
"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.
BigDaddy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 18th, 2006, 2:59 AM   #12 (permalink)
Registered User
Fresh Surpasser
 
Meesho's Avatar
 
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
Re: What's wronge with my database??!!!

its ok guyz .. i'm not
it just misundersanding .. so let me try now ..

ok i did as Mr Fern told me
the result: Unable to select database.
http://www.mfan.the-torches.com/create.php


even this one:
http://the-torches.com/cf/install.php
__________________
.. My Blog ..
Meesho is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 7:23 AM   #13 (permalink)
Registered User
Fresh Surpasser
 
Meesho's Avatar
 
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
Re: What's wronge with my database??!!!

did i do as u ask me Mr.Fern .. or what?? .. i hope i did ..
__________________
.. My Blog ..
Meesho is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 7:13 PM   #14 (permalink)
The Mommy Slayer
Seasoned Poster
 
BigDaddy's Avatar
 
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??!!!

Seems like it was done as directed. Now looks like the issue is that whatever script you have to access the database is incorrect. If you can post the code for the connection to the database *****without posting security info(eg. password, usernames,etc)**** we can try and see why.
__________________
"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.
BigDaddy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 8:58 PM   #15 (permalink)
?™
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7, Pass 78
14,157 posts
Gave thanks: 68
Thanked 53 times
Send a message via Skype™ to David
Re: What's wronge with my database??!!!

Quote:
Originally Posted by BigDaddy
*****without posting security info(eg. password, usernames,etc)****
Thank you for mentioning that. I forgot to clean out some information he left on my blog that would let others mess with his stuff.
__________________
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.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 9:22 PM   #16 (permalink)
Senior Member
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
25,189 posts
Gave thanks: 982
Thanked 879 times

Default Medal 
Total Awards: 1

Re: What's wronge with my database??!!!

Quote:
Originally Posted by David
Thank you for mentioning that. I forgot to clean out some information he left on my blog that would let others mess with his stuff.
Good job keeping things on the lockdown.


__________________
Add Surpass on Twitter and Facebook for great deals and contests FIRST!
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 9:29 PM   #17 (permalink)
?™
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7, Pass 78
14,157 posts
Gave thanks: 68
Thanked 53 times
Send a message via Skype™ to David
Re: What's wronge with my database??!!!

Quote:
Originally Posted by Kayla
Good job keeping things on the lockdown.


Hopefully I'll have some time to revamp it soon.
__________________
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.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 19th, 2006, 9:49 PM   #18 (permalink)
Registered User
Fresh Surpasser
 
Meesho's Avatar
 
Joined in Feb 2006
Lives in Saudi Arabia
15 posts
Gave thanks: 0
Thanked 0 times
Re: What's wronge with my database??!!!

i know its bad to put put security info .. but frustrated from my db ..
ok here is the code PHPFanbase

and i would know .. the problem from me or from the hosting?!
__________________
.. My Blog ..
Meesho is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On