You are here: IF statement regarding dates « PHP Programming Language « IT news, forums, messages
IF statement regarding dates

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация