mysql query to get data created last two week code example
Example: sql select data from last week
select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();
select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();