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
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
$today = date("Ymd");
if($input_date > $today)
{ echo "Date must be before today!"; }
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
3 matches
Mail list logo