Depending on what your purpose is, it might be easier/better to make the comparison in your SQL query instead, when retreiving the data. As in
Code:
SELECT a,b,c,my_time
FROM table
WHERE my_time < DATE_SUB(now(), INTERVAL 3 MONTH)
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|