I have an issue trying to get Http Authentification working with an SQL line checking my db, it is
with the database as
customerID | password
------------+---------
PAULBYR | yhuthe
when i submit it it just seems to loop back in prompting again and i cant work out why...
Could it be because the password in the database is not encrypted and PHP_AUTH_PW is looking for an encrypted one?
Code:
$sql = "SELECT * FROM customer WHERE UPPER(customerID) = UPPER('{$_SERVER['PHP_AUTH_USER']}') AND lower(password) = lower('{$_SERVER['PHP_AUTH_PW']}')";
with the database as
customerID | password
------------+---------
PAULBYR | yhuthe
when i submit it it just seems to loop back in prompting again and i cant work out why...
Could it be because the password in the database is not encrypted and PHP_AUTH_PW is looking for an encrypted one?