Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $query = "";
  2. if($current_url!="") {
  3. $query = "UPDATE tb_sessions SET timestamp_last_activity = " . time() . ",url_last_activity = '" . $current_url . "' WHERE id_user=$user_id";
  4. }
  5. else{
  6. $query = "UPDATE tb_sessions SET timestamp_last_activity = " . time() . " WHERE id_user=$user_id";
  7. }
  8. $this->last_query = $query;
  9. $this->mysqli->query($query);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement