Select
	DATE_FORMAT(date(alltable.t_stamp),'%m/%d/%Y') as Day,
	COUNT(*) AS Scans
FROM alltable
Where (alltable.t_stamp BETWEEN :starttime AND :endtime)
GROUP BY day(alltable.t_stamp)