prepare($sql); $stmt->execute(array($_SESSION['user'], $date)); $day = $stmt->fetchAll(PDO::FETCH_ASSOC); $day = array_pad($day, 5, array()); ?>