Код: Выделить всё
function employeeLogin($mobile, $password, $deviceId)
{
$sql = "select \* from employees where (mobile like '$mobile' or alt_mobile like '$mobile')
and password like md5('{$password}') and status = 1";
$retval = mysqli_query($this->connection, $sql);
while ($row = mysqli_fetch_assoc($retval)) {
if ($deviceId != 0 && !isset($_GET["web"])) {
return -1;
}
return json_encode($row);
}
return 0;
}
Код: Выделить всё
он пробовал протестировать в тестовой среде, он всегда возвращает неверный логин
Подробнее здесь: https://stackoverflow.com/questions/787 ... production
Мобильная версия