Posted by i love PHP on 06/07/06 19:17
Hello guys ..
my qustion is
i have table in the database that have these two information
The_date (in type Date)
The_time (type_time)
here is simple data in this table
the_date = 2005-08-20
The_time = 15:00:00
what i need is simple if statement that compair the Server Time and
date with this time and date .. and if the server time and date pass
this time it will set value (X) to (false)
example
today is 7-06-2006 and lets say time is 15:00:00
in the database the date is
7-06-2006 and time are (14:59:00)
in this case it will give me True
other example
today is 7-06-2006 and lets say time is 15:00:00
in the database the date is
6-06-2006 and time are (14:00:00)
it will give me false becouse it pass this time
i hope i was clear
thanks
[Back to original message]
|