Hi, I have been working with PHP/MySQL for years but i'm just trying to overcome a basic problem.
<?php
if ('$error == failed') {
echo "Sorry, your password seemed to be incorrect, this page should only be used by Admins.";
}
else {
echo "Nothing";
}
?>
That is the code, but even without the ?error=failed it still shows up with the "Sorry, your password seemed to be incorrect, this page should only be used by Admins." error, the $error is not defined anywhere else