MYSQL PhpPuzzler-anyone help?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
shadow89
-


Joined: 18 Jul 2006
Posts: 2

PostPosted: Tue Jul 18, 2006 9:35 pm    Post subject: MYSQL PhpPuzzler-anyone help? Reply with quote

Hello evryone

I have just joined a new host and ive tried to setup a database, user, and add the user to the database.

I have dropped the tables and deleted both the database and users. I have tried deleting the database and user and creating a brand new database, brand new user, and adding the user to the database and i get the same error everytime:

$dbh=mysql_connect ("localhost", "shadow89_1234567", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("shadow89_test");

I only get the error when iadd the user to the database.
the odd thing is that if i keep the error in mysql, my phhpbb forum works fine. If i remove the user from the db, naturally i get critical error. Help?

My Main concern is will my forum die at some point?? and how do i resolve the error more importantly. Thanks
Back to top View user's profile Send private message
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Wed Jul 19, 2006 4:35 am    Post subject: Reply with quote

Code:
$dbh=mysql_connect ("localhost", "shadow89_1234567", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("shadow89_test");

that does not look like an error. That is the piece of code that connects you to the mysql database. Is there another error that PHP spits out?
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
shadow89
-


Joined: 18 Jul 2006
Posts: 2

PostPosted: Wed Jul 19, 2006 9:23 am    Post subject: Reply with quote

Oh i see. I was concerned because i thought it was an error. I was told last night that its purely programmers code and nothing to worry about? :D
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group