The condition for the number of invalid login attempts. Why does the IF condition work in Denver and does ELSE work on the server? In Denver, the number of attempts increases and a new entry with the same IP is added to the server.
$result = mysqli_query($db, "SELECT * FROM users WHERE login='$login' AND password='$password' AND activation='1'"); $myrow = mysqli_fetch_array($result); if (empty($myrow['id'])) { $select = mysqli_query($db, "SELECT ip FROM oshibka WHERE ip='$ip'"); $tmp = mysqli_fetch_row ($select); if ($ip == $tmp[0]) { $result52 = mysqli_query($db, "SELECT col FROM oshibka WHERE ip='$ip'"); $myrow52 = mysqli_fetch_array($result52); $col = $myrow52[0] + 1; mysqli_query ($db, "UPDATE oshibka SET col=$col,date=NOW() WHERE ip='$ip'"); } else { mysqli_query ($db, "INSERT INTO oshibka (ip,date,col) VALUES ('$ip',NOW(),'1')"); } In Denver ip 127.0.0.1, on the server 178.168.244. Is ip clipped? 4 values should be?
Fields prntscr.com/bdu7zr on the server, in denver exactly the same
$ip, where does it come from in your code? -