You are here: Re: datetime compare question « PHP SQL « IT news, forums, messages
Re: datetime compare question

Posted by Alan Robertson on 10/14/19 11:30

"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1130514685.898200.317640@f14g2000cwb.googlegroups.com...
> How about this:
>
> $expiry = strtotime('2005-02-20 16:20:00'); //$expiry is a timestamp
> $query = "SELECT * FROM tbl_market WHERE UNIX_TIMESTAMP(start_date) <
> $expiry";
>

Blooming 'ell.
That worked.
You've saved me a lifetime of scratching my head.

I still don't understand why my way didn't work, but now that it works I
aint touchning it.

Thanks a mill.

Regards
Alan

 

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

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