I am building an application in PHP with MySQL on my localhost. I tried to connect to the database (from the code), but the error message I get is:
mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'localhost' (using password: NO) in C:....whatever.
and:mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:....
I never wrote user 'user' in the whole application but root and even when I comment out that line of mysql_connect, the first error doesn't go away.
The url of the index of the application is localhost/app/Source/index.php
When I make a page: localhost/index2.php with the same content as my db_connec file then there is no error.
Can anyone offer me some advice please?
Thanks in advance!
MiRed
Edited by hamluis, 30 December 2010 - 02:04 PM.
Moved from Win 7 to Programming ~ Hamluis.