I am wondering is there a way to select only rows where time since epoch and “now()” is greater than a certain amount of seconds.
I store the rows with a field holding seconds since epoch created from the php function time().
So something like this:
SELECT * FROM table WHERE (now - field_time) > 60 seconds
NOW()returns a SQL DateTime and what you need isUNIX_TIMESTAMP()which returns seconds since epoch (unix timestamp) for now if you don’t give any date as parameter.