[thelist] Need some PHP Syntax help
Mark
envoy at sonic.net
Thu Apr 26 16:29:33 CDT 2007
> If (strtotime("now") > strtotime(date("m/d/Y 8:00 pm",
> strtotime($OrderDate))))
>
Syntax and semantics are muddled here.
Not sure if strtotime('now') works. just calling time() would do the trick.
If $orderdata is in fact a *string* containing only a date string and no
time value then why not just use :
if (time() > (strtotime($Orderdate) + 20 * 60 * 60) )
(is the current time later than 20 hour past midnight on the order date
- 8 pm)
Or alternatively:
if (time() > strtotime($Orderdate . " 8:00 pm")
More information about the thelist
mailing list