我正面临这个无聊的问题,但我不明白出了什么问题。在另一个托管平台上我没有这个错误。这是第 150 行:
else if ((date('m') == 08) && (date('d') == 02)) {
echo "<span> Lughnasad </span>";
}
这是整个代码:
<div class="info_event">
<?php
// TEST LINE
if ((date('m') == 01) && (date('d') >= 01)) {
echo "<span> Inizio dell'anno </span>";
}
// WICCA - Imbolc
else if ((date('m') == 02) && (date('d') == 02)) {
echo "<span> Imbolc </span>";
}
// St. Patrick's Day
else if ((date('m') == 03) && (date('d') == 17)) {
echo "<span> St. Patrick's Day </span>";
}
// WICCA - Oestara
else if ((date('m') == 03) && (date('d') == 21)) {
echo "<span> Oestara </span>";
}
// WICCA - Beltane
else if ((date('m') == 05) && (date('d') == 01)) {
echo "<span> Beltane </span>";
}
// Labour Day
else if ((date('m') == 05) && (date('d') == 02)) {
echo "<span> Labour Day </span>";
}
// Victoria Day
else if ((date('m') == 05) && (date('d') == 24)) {
echo "<span> Victoria Day </span>";
}
// WICCA - Litha
else if ((date('m') == 06) && (date('d') == 21)) {
echo "<span> Litha </span>";
}
// WICCA - Lughnasad
else if ((date('m') == 08) && (date('d') == 02)) {
echo "<span> Lughnasad </span>";
}
// WICCA - Mabon
else if ((date('m') == 09) && (date('d') == 21)) {
echo "<span> Mabon </span>";
}
// WICCA - Samhain / Halloween
else if ((date('m') == 10) && (date('d') >= 31) || (date('m') == 11) && (date('d') <= 01)) {
echo "<span> Samhain / Halloween </span>";
}
// St. Andrew's Day
else if ((date('m') == 11) && (date('d') == 30)) {
echo "<span> St. Andrew's Day </span>";
}
// WICCA - Yule
else if ((date('m') == 12) && (date('d') == 21)) {
echo "<span> Yule </span>";
}
// Natale
else if ((date('m') == 12) && (date('d') == 25)) {
echo "<span> Natale </span>";
}
慕雪6442864