using php return data from Mysql where datetime column is 30 mins or older
Posted on 2013-06-14
I'm using PHP to look into my mySQL data and return some for sale items. I want non paying members to NOT see new additions so there is a 30 minute delay for them.
How can I create that in the PHP code please?
an example datetime entry in my datebase is : 2013-06-04 12:34:56
so, a user visiting at 2013-06-04 12:44:56 should not see it yet a visitor coming after 30 mins of the datetime 2013-06-04 14:34:56 can see it.