MySQL Query to select data from last week?
SELECT id FROM tbl
WHERE date >= curdate() - INTERVAL DAYOFWEEK(curdate())+6 DAY
AND date < curdate() - INTERVAL DAYOFWEEK(curdate())-1 DAY
select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();