I have been using PHP since May of last year and done a lot of neat things, however, for the first time I must now compare a date field with todays date to make an "expiration" feature for something I am building. I am storing to fields in MySQL as a datatype 'date' YYYY-MM-DD, 1 is posted date and one is expiration date. I can convert these to Unix Timestamp if I have to, but I need to do something like:
if($expires > $today)
how can I do this, I have had date issues with ASP and Perl and had no real probs, but I can't find much info on PHP dates and how to work with them...can anyone help me on this one...please...