Originally posted by mmilano
if you are using mysql as your db, then query the date like this:
select * from table where date > (NOW() - 20)
Won't that get posts that are uptop 20 seconds old, rather than at least 20 seconds?
SELECT * FROM table WHERE date < (NOW() - 20)
That would get all rows where the date is at least 20 seconds ago.