i have developed ads website
but i have problem, i want make period from registration date
and when this period is end the ad will disappear
i put in insert query
example:
//i put in insert query for reg_date this
'insert into ads (reg_date) values (NOW());
row1 — reg_date ==== 13/11/2012
row2 — exp_date ==== 1 month
i want after one month this ad will disapper or not active
INSERT INTO ads (reg_date, exp_date) VALUES (now(), DATE_ADD(NOW(), INTERVAL 1 MONTH))