MySQL Forums
Forum List  »  Newbie

Re: PHP/MySQL date < CURDATE() problem
Posted by: Greg Platt
Date: December 28, 2007 01:13PM

I have a hunch that Curdate() probably ALSO includes the time down to the latest clock tick. Every record in your table is older than the current clock tick... unless you somehow managed to write them tomorrow. Try formatting curdate() using the from_unixtime() function and take a look at what it actually contains. But that would be my guess.

Options: ReplyQuote

Written By
Re: PHP/MySQL date < CURDATE() problem
December 28, 2007 01:13PM

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.