Re: PHP/MySQL date < CURDATE() problem
I figured out how to make it work, but I still would like to know exactly why the first method didn't work. Here's what I did:
DELETE FROM events WHERE CONCAT(YEAR(date),'-',MONTH(date),'-',(DAY(date) + 1)) <= CURDATE()
Subject
Written By
Posted
December 27, 2007 07:17PM
Re: PHP/MySQL date < CURDATE() problem
December 27, 2007 07:21PM
December 28, 2007 01:13PM
December 28, 2007 01:16PM
December 28, 2007 01:22PM
December 28, 2007 01:54PM
December 28, 2007 02:23PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.