0
mysqli_query method returns object, not an array. So to be able to read the results you have to fetch it first: $result = mysqli_query($mysqli, "SELECT attempts FROM users WHERE username = '".$_POST['username']."'"); $row = mysqli_fetch_assoc($result);{ //yeah. if (isset($_POST['login'])){ i...