View previous topic :: View next topic |
Author |
Message |
shadow89 -
Joined: 18 Jul 2006 Posts: 2
|
Posted: Tue Jul 18, 2006 9:35 pm Post subject: MYSQL PhpPuzzler-anyone help? |
|
|
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 |
|
|
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Wed Jul 19, 2006 4:35 am Post subject: |
|
|
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 |
|
|
shadow89 -
Joined: 18 Jul 2006 Posts: 2
|
Posted: Wed Jul 19, 2006 9:23 am Post subject: |
|
|
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 |
|
|
|