First of all thanks in advance. i m creating a product management site in php .a concept of the site is to when a product post is inserted it will be activated and display at mid night and now i want tell something about a date-time(mysql table name is deals and its date column name is submit_date) formats 2013-04-05 13:15:43
CREATE EVENT deals
ON SCHEDULE EVERY '00:00:00' midnight
DO
update deals set status='1' where submit_date=CURDATE();
i have a confusion in midnight syntax means for example for every day we can write here 1 DAY as i want do something here for mid night for every inserted rows in deals table...