$today = date("Y-m-d");
$haftasonra = date("Y-m-d", strtotime("+7 days", strtotime($today)));
$haftaonce = date("Y-m-d", strtotime("-7 days", strtotime($today)));
sorgu yapakende "where between $today and $haftaonce" gibi kullanacaksın
$today = date("Y-m-d");
$haftasonra = date("Y-m-d", strtotime("+7 days", strtotime($today)));
$haftaonce = date("Y-m-d", strtotime("-7 days", strtotime($today)));