MyWay timeliness study data collection
[busui.git] / include / db / servicealert-dao.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
function getServiceOverride($date="") {
        global $conn;
        $query = "Select * from calendar_dates where date = :date and exception_type = '1' LIMIT 1";
         debug($query,"database");
        $query = $conn->prepare($query); // Create a prepared statement
        $query->bindParam(":date", date("Ymd",($date != "" ? $date : time())));
        $query->execute();
        if (!$query) {
                databaseError($conn->errorInfo());
                return Array();
        }
        return $query->fetch(PDO::FETCH_ASSOC);
}
?>