My name is Sarfaraz. I have created a small website for learning purpose only.
I have developed it in PHP and Mysql. The site is working fine on local server with My sql database. The sign up, Login pages are working just fine.
But when i am uploading the site on my hosting server all pages are working but pages having MYsql connectivity is displaying errors.
The actual Error is
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/jahanina/public_html/sign_up.php on line 48
Access denied for user 'root'@'localhost' (using password: NO)
Actually I need the correct method to use username/ passsword and database in PHp and Mysql on hosting server.