Re: [PHP] checking date is not greater than today

2002-06-30 Thread Peter J. Schoenster
On 30 Jun 2002 at 22:31, Timothy J. Luoma wrote: > > I am trying to compare a given date string (i.e. June 30, 2002 is > 20020630). I want to make sure that the input string that is given is > not greater than today (i.e. if today is June 30, and you ask for > 20020701, I want to be able to thr

Re: [PHP] checking date is not greater than today

2002-06-30 Thread Timothy J. Luoma
On Sun, 30 Jun 2002, John Holmes wrote: > $today = date("Ymd"); > if($input_date > $today) > { echo "Date must be before today!"; } *thwaps self* DUH! Thanks... been staring at this for too long. > It looks like you're dealing with MySQL dates. There are a ton of useful > functions you can u

RE: [PHP] checking date is not greater than today

2002-06-30 Thread John Holmes
Time Functions of the MySQL manual. ---John Holmes... > -Original Message- > From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]] > Sent: Sunday, June 30, 2002 10:31 PM > To: PHP Mailing List > Subject: [PHP] checking date is not greater than today > > > I am tryin

[PHP] checking date is not greater than today

2002-06-30 Thread Timothy J. Luoma
I am trying to compare a given date string (i.e. June 30, 2002 is 20020630). I want to make sure that the input string that is given is not greater than today (i.e. if today is June 30, and you ask for 20020701, I want to be able to throw an error). I'm a newbie, so I'm not sure the best way to