Forum Moderators: open
How can I prompt for a password when they go to [#*$!.xx.xx.#*$!...] I set a password to the root user, and modified config.inc.php to include the password:
$cfg['Servers'][$i]['password'] = '(the password)';
But when anyone goes to [#*$!.xx.xx.#*$!...] they aren't even prompted for the password I just applied.
Also, my php scripts no longer connect to the database even though I added the password to mysql_connect():
$dbh=mysql_connect ("localhost", "root","(the password)") or die ('System is down. We apologize for the inconvenience. Please try again soon.' . mysql_error());
So all of my scripts now say:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\site\xampp\htdocs\xampp\login.php on line 12
System is down. We apologize for the inconvenience. Please try again soon.
This is really urgent. Any help would be greatly appreciated.
Thanks.