我遇到了一个致命错误。这里缺少什么?提前感谢您的帮助。我在学习。我正在尝试测试某些日期之间的开放日期。
<?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";}}
?>