Lurk
Active Member
- Joined
- Dec 4, 2017
- Messages
- 336
- Reaction score
- 48
I want to block the account manager login on website, login.php has this code
I tried changing
I also tried == 1
but then whenever I try to log in with any account I get this error in my brower
PHP:
$account = mysql_select_single("SELECT {$fields} FROM `accounts` WHERE `name`='{$username}' AND `password`='{$password}' LIMIT 1;");
if ($account === false) {
jsonError('Wrong username and/or password.');
}
I tried changing
if ($account === false) {
to
PHP:
if ($account === false) or ($username === "1") {
but then whenever I try to log in with any account I get this error in my brower
Code:
Parse error: syntax error, unexpected 'or' (T_LOGICAL_OR) in E:\xampp\htdocs\login.php on line 33