Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = "";
- if($current_url!="") {
- $query = "UPDATE tb_sessions SET timestamp_last_activity = " . time() . ",url_last_activity = '" . $current_url . "' WHERE id_user=$user_id";
- }
- else{
- $query = "UPDATE tb_sessions SET timestamp_last_activity = " . time() . " WHERE id_user=$user_id";
- }
- $this->last_query = $query;
- $this->mysqli->query($query);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement