Help for this page
if ($time) { $sql .= 'AND time = ? '; ... if ($date) { $sql .= 'AND date = ? '; }