prepare($sql); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetchAll(PDO::FETCH_ASSOC); jsonSuccess($row); } else { jsonError("No driver records found with notes this month."); } ?>