Table:
userid, sessionid, last_active
I got the following requests:
SELECT `userid` FROM `session_keys` WHERE `sessionid`='SESSION_ID'
UPDATE `session_keys` SET `last_active`=now() WHERE `sessionid`='SESSION_ID'
Is it possible to put it in one request? but I need the callback from the select request.
The only goal i wanna reach is to update the last_active time of an timestamp when selecting the data.
Thank you.