> the tricky part is I could have fifteen rows in the db all with
> different start and end dates that I need to check each day against.

Then do the data comparison in the DB --

        SELECT * FROM your_table
        WHERE {$check_time} >= start_time
                AND {$check_time} <= end_time;

(Adjust as appropriate for date formatting, SQL injection, etc.)
If you're using MySQL, this page is informative:
        http://dev.mysql.com/doc/mysql/en/Date_and_time_types.html

-mike.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

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

Reply via email to