Der er adskillige MySQL-funktioner der gør ting som dette for dig
SELECT * FROM posts
WHERE
WEEK(post_date) = WEEK(CURDATE())
AND
MONTH(post_date) = MONTH(CURDATE())
Der er adskillige MySQL-funktioner der gør ting som dette for dig
SELECT * FROM posts
WHERE
WEEK(post_date) = WEEK(CURDATE())
AND
MONTH(post_date) = MONTH(CURDATE())