I am trying to get a total for each of the last 7 days.
$sql = "SELECT COUNT(*) FROM `followup` WHERE quotenumber!='' AND type='sla' AND `addeddate` = CURDATE() - INTERVAL 7 DAY";
$result = mysql_query($sql);
$7daynumber = mysql_fetch_row($result);
this does not work and I am stumped.. Is there a way to do this with 1 query?
I basically want to do an echo"$7daynumber - $6daynumber - $5daynumber" etc..
thanks