Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

translate WHERE statement from ASP to PHP

Guest
Oct 20, 2007 Oct 20, 2007
What would be the PHP equivelant to a ASP/SQL recordset query that's filtered with

WHERE expire >= getDate()

getDate() does not work with PHP? I've tried things like WHERE expire >= date('Y-m-d') with no luck. Keep in mind, the expire data is formatted like this: 2007-10-20 00:00:00 in the MySQL database (apache server).
TOPICS
Server side applications
193
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 21, 2007 Oct 21, 2007
On Sun, 21 Oct 2007 05:19:38 +0000 (UTC), "jsteinmann"
<webforumsuser@macromedia.com> wrote:

>What would be the PHP equivelant to a ASP recordset query that's filtered with
>
> WHERE expire >= getDate()


The MySQL equivalent would be:

WHERE expire >= CURRENT_DATE

Gary
Translate
LEGEND ,
Oct 21, 2007 Oct 21, 2007
LATEST
On Sun, 21 Oct 2007 05:19:38 +0000 (UTC), "jsteinmann"
<webforumsuser@macromedia.com> wrote:

>What would be the PHP equivelant to a ASP recordset query that's filtered with
>
> WHERE expire >= getDate()


The MySQL equivalent would be:

WHERE expire >= CURRENT_DATE

Gary
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines