> I have a date stored in a table in my MySQL Database using a DATE type
for
> the column.
> 
> How can i compare the date in the table to today

... WHERE your_date = CURDATE() ...

> e.g.
> 
> $today = mysql_result($result, $i, Booking_Date);
> 
> if($today = *HELP*){

or...

if($today == date('Y-m-d'))

(notice the second equals sign!)

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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

Reply via email to