Jump to content

Selecting all records from 6:00pm on


tibberous

Recommended Posts

Here is an example:

 

"SELECT * FROM orders where order_time between '" . date('Y-m-d 18:00:00', strtotime('yesterday')) . "' AND '" . date('Y-m-d 18:00:00', strtotime('today')) . "';"

 

This is basically same as andrewgauger was saying, but complete and a little clearer, IMHO.

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.