Jump to content

CURDATE(), INTERVAL 1DAY) not working :(


xwishmasterx

Recommended Posts

I am using the below code for todays count and it works fine:

 

...AND left(vtp_tracking.action_date,10) = CURDATE()

 

I was hoping I could use the below code to select yesterdays count:

 

....AND left(vtp_tracking.action_date,10) = CURDATE(), INTERVAL 1 DAY)

 

but doesnt seem to work.

 

Is there anything I am missing (there must be)?

 

 

Link to comment
https://forums.phpfreaks.com/topic/234998-curdate-interval-1day-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.