Jump to content

[SOLVED] Date parameters CURDATE problem?


simon551

Recommended Posts

Hi,

 

I'm trying to do something like this:

 

SELECT * FROM timesheets_main WHERE timesheets_main.tsdate BETWEEN CURDATE() AND DATE_SUB(CURDATE(),1)

 

 

english translation: select all records where the date is between todays date yesterday's date.

 

Any idea how to do that?

Link to comment
https://forums.phpfreaks.com/topic/60143-solved-date-parameters-curdate-problem/
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.