I have this code
$currDay = date('w');
$weekStart = date('Y-m-d', ($currDay == 6 ? time() : strtotime('last Saturday')));
$weekEnd = date('Y-m-d', ($currDay == 5 ? time() : strtotime('Friday')));
$sql = mysql_query("SELECT *
FROM staffpay
WHERE `date` >= '$weekStart'
AND `date` <= '$weekEnd'
AND `name` = 'Obi-Wan'
AND `type` = 'Saturday'
LIMIT 1") or die(mysql_error()); $result = mysql_num_rows($sql);
which works fine for anything for the past week, but i need to change it so that it checks for the past 2 weeks