Jump to content

SQL select problems


dennismonsewicz

Recommended Posts

ok so I got this working...

 

SELECT * FROM tbl_name WHERE DATE_SUB(NOW(), INTERVAL 24 HOUR) <= date_col

 

but it only selects the entries from today... I need it to pull entries from the past 24 hours...

 

I pull a report every morning around 10am and need to be able to pull results from then and the past twenty four hours

Link to comment
https://forums.phpfreaks.com/topic/186198-sql-select-problems/#findComment-983407
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.