Consider calculating the time difference when you select the record. For example in MySQL
SELECT TIMESTAMPDIFF(SECOND,lastvisit,NOW()) FROM table
Change SECOND to MINUTE as required.
pojIn reply to Re^3: Using Timestamp to tell if someone is on the site
by poj
in thread Using Timestamp to tell if someone is on the site
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |