... I think there is a wrong with ($LogoutTime - $RightLoginTime'). So please try to fix the error..
...
$query4 = "INSERT INTO accounts (Distance) ('$LogoutTime - $RightLoginTime')";
This line should be:
$query4 = "INSERT INTO accounts (Distance) VALUES ('$LogoutTime - $RightLoginTime')";
Hope that helps. :)
-- Pavel a.k.a. Papi
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php