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 use in your queries that make any time manipulation in
> PHP unnecessary. Chapter 6, Date and Time Functions of the MySQL manual.

I'm not dealing with MySQL dates yet, just simple query strings, but I'll
check that out before I get into MySQL.



PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to