public function getSummary($startDate, $endDate)
{
$sql = "SELECT firstname, lastname, DATE(signin) AS signin_date, TIME(signin) AS signin_time,
appttime, DATE(processtime) AS process_date, TIME(processtime) AS process_time,
categories.name FROM visitors inner join categories ON (visitors.dept = categories.id)
where DATE(signin) BETWEEN ? AND ? Limit ?";
$limit = 30;
$db = new Database();
$stmt = $db->prepare($sql);
$stmt->execute(array($startDate, $endDate, $limit));
$this->results = $stmt->fetchAll(PDO::FETCH_NUM);
return $this->results;
}
can anyone tell me what in the world is going on. I am testing now but I plan on actually passing the limit in on the future.

New Topic/Question
Reply




MultiQuote





|