致命的なエラーが発生しています。ここで何が欠けていますか?助けてくれてありがとう。私は学んでいます。特定の日付の間でどの日付が開いているかをテストしようとしています。
<?php
$query = 'SELECT venueprofile.venuename, venueprofile.capacity, venueprofile.contact, venueprofile.EmailAddress, venueprofile.tele, venueprofile.st, venueprofile.city, showdate.show_date, showdateid'
. ' FROM `venueprofile` '
. ' INNER JOIN `showdate` ON venueprofile.venueid = showdate.venueid'
. ' WHERE show_date BETWEEN \'2013-06-15\' AND \'2013-06-25\''
. ' AND capacity BETWEEN 500 AND 3000 '
. ' ';
$startDate = '$date1';
$enddate = '$date2';
$dates = array($startDate);
while ($startDate != $enddate) {
$startDate = date('Y-m-d', strtotime($startDate . ' +1 day'));
$dates[] = date;
}
;
$bookings = array("2013-06-16","2013-06-20");
foreach ($dates as $date) {
if (in_array($date, $bookings)) { echo ""; }
else { echo $date . " is Open\n";}}
?>