Help for this page
Select Code to Download
Select
or
download this
SELECT TIMESTAMPDIFF(SECOND,lastvisit,NOW()) FROM table