You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// $sql = "SELECT * FROM tbl_login_history WHERE `user_id` = '{$_SESSION['user_id']}' AND ip_address = '$ip_address' ORDER BY id DESC LIMIT 1";
// $result = mysqli_query($db, $sql);
// if(mysqli_num_rows($result) == 1){
// $row = mysqli_fetch_assoc($result);
// }
// $sql_logout = "UPDATE tbl_login_history SET logout_time = '$logout_time' WHERE id = '{$row['id']}' AND `user_id` = '{$_SESSION['user_id']}' AND ip_address = '$ip_address'";