MySQL Forums
Forum List  »  PHP

Date/Time
Posted by: Hai Nguyen
Date: September 18, 2005 11:26AM

Hi,

I am newbie both in php/mysql. I have php version: 4.3.8 and mysql version: 4.0.20 installed.

I am working on a NFL football pool. I have a table called 'schedule' with a column 'start_date' which is a date type.

As of right now, they can submit there picks but only up midnight which is the start date of the game. What I want to do is make it so they can submit at 8 am.

$query = "select * from schedule where start_ate <= 'DATE_ADD('start_date', INTERVAL, 8 HOUR)'";

Since 'start_date' is a date type, whould this be a problem and not a datetime type?

What is the best way to do this? Any suggestions is greatly appreciated.

Thanks in advanced?

-haiN

Options: ReplyQuote


Subject
Written By
Posted
Date/Time
September 18, 2005 11:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.