Mave
Active member
Currently I use
To get all posts with prefix_id 6.
How do i get all posts from prefix_id 6 AND posted today?
I tried this but it's not working:
Code:
SELECT * FROM xf_thread A INNER JOIN xf_post B ON A.post_date = B.post_date WHERE prefix_id = 6
How do i get all posts from prefix_id 6 AND posted today?
I tried this but it's not working:
Code:
$sql = 'SELECT * FROM xf_thread A INNER JOIN xf_post B ON A.post_date = B.post_date WHERE prefix_id = 6 AND B.post_date = DATE(NOW())';