0
私はこのエラーがありますが、何がエラーなのかわかりません、私はここで初心者です。前もって感謝します。誰かがこのエラーで私を助けることができますか?
予期しない ''、 ''(T_CONSTANT_ENCAPSED_STRING)、 '、'または ';'が予期しない構文エラーです。どこかにこの行の
<?php
$qry = "SELECT tbl_input.* FROM tbl_input";
$result = mysql_query($qry);
?>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultDate: '2016-01-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
events:
[
<?php
while ($qry = mysql_fetch_array($result))
{
$date = $qry['m_date'];
$name = $qry['comp_name'];
$id = $qry['id'];
$end = new DateTime($schedule);
$Edate = date_format($end, "d");
$Emonth = date_format($end, "n");
$Eyear = date_format($end, "Y");
$emonth = $Emonth - 1;
私はエラーを持っている:
echo'
{
title: "'. $name . '",
start: new Date('.$Eyear.', '.$emonth', '.$Edate.')
},
';
}
?>
]
});
});
</script>
</head>
<div id='calendar'></div>
<?php
include('./inc/footer.inc')
?>
ありがとうございました!あなたは私の問題を解決しました:) – DrkWhz24
@ DrkWhz24それを答えとしてマークするのはどうですか? :) –
@ DrkWhz24:答えを受け入れるhttp://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – devpro