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

Posted by Alan Little on 06/07/06 21:54

Carved in mystic runes upon the very living rock, the last words of i
love PHP of comp.lang.php make plain:

> i have table in the database that have these two information
>
> The_date (in type Date)
> The_time (type_time)
>
> 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)

$dbTime = strtotime("$The_date $The_time");

if ($dbTime < time()) {
}
else {
}

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/

 

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

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