How do I write this SQL statement for Posts written in last 24 hours?

Personally, I’d generate the date in php using the PHP Date class and then $date->sub(). With a few more lines of code the query will read:

... WHERE post_date >= ".$date." ...

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)