Check whether a date given in the database has been exceeded in php

时间:2015-11-12 11:04:40

标签: php mysql

I have 2 tables with similar columns. First table is upcoming_movies and second is released_movies. There is a column release_date in table upcoming_movies. Suppose the release_date column has an entry 15/11/2015, and if the given date has been exceeded then, the details in upcoming_movies table should move to released_movies table. How I should validate the date and transfer all the details from first table to the second. Thanks in advance.

0 个答案:

没有答案