Guest User

Untitled

a guest
Jul 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $_SESSION['LAST_ACTIVITY'] = time();
  2. $lastseen = $_SESSION['LAST_ACTIVITY'];
  3. $lastseen = date("h:i:sa",$lastseen );
  4.  
  5. $query = "UPDATE `users` SET `lastseen` = '$lastseen' WHERE `username`='$username'";
  6. $query_run = mysql_query($query);
Add Comment
Please, Sign In to add comment