I'am learning PHP easily but heres a problem: 'Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\xampplite\htdocs\test\test.php on line 2 Could not connect: Access denied for user 'ODBC'@'localhost' (using password: NO)' How can i fix it?
Check that you are using the correct username. i dont think user ODBC exist, and normaly you should have a password. if you look in the file "function.mysql-connect" you can probably find some lines like $mysql_user = ""; $mysql_pass = ""; $mysql_host = "localhost"; if you change the parameters it will probably work
EDIT: A few seconds too late... The username and/or password you're using to access the database is/are incorrect.
I tried searching for this file but can't find it, where is this file exactly? ( i'am using xampplite for now )
Ok that login worked but now when i try to create a database it throws up this error: Could not connect: Host 'MYHOST' is not allowed to connect to this MySQL server
Learn more about connecting to mysql server : function.mysql_connect now you can control this error : Good Luck
Maybe i've got the codes right but it has something to do with security access, for being a PHP beginner i have no clue how to edit it.. thou i've tried your codes and its still shooting up the same error