我的PHP代码有问题。而不是显示处理此代码,它将此代码视为注释。其他代码部分正常工作,只有这一部分没有。第二个有趣的事情是,当我写?php 而不是?时,网站甚至没有将此代码显示为评论。可能是什么原因?
<?
if (((isset ($_GET ["leaf"]))
&& ($_GET ["leaf"] != "news0"))
|| (!isset ($_GET ["leaf"])))
{
echo "<a class=\"tuco\" href=\"?node=news&leaf=news0\">";
}
else
{
echo "<strong><a class=\"tuco\" href=\"?node=news&leaf=news0\">";
}
echo "erstellen";
if (((isset ($_GET ["leaf"]))
&& ($_GET ["leaf"] != "news0"))
|| (!isset ($_GET ["leaf"])))
{
echo "</a>";
}
else
{
echo "</a></strong>";
}
echo " | ";
if (((isset ($_GET ["leaf"]))
&& ($_GET ["leaf"] != "news1"))
|| (!isset ($_GET ["leaf"])))
{
echo "<a class=\"tuco\" href=\"?node=news&leaf=news1\">";
}
else
{
echo "<strong><a class=\"tuco\" href=\"?node=news&leaf=news2\">";
}
echo "löschen";
if (((isset ($_GET ["leaf"]))
&& ($_GET ["leaf"] != "news2"))
|| (!isset ($_GET ["leaf"])))
{
echo "</a>";
}
else
{
echo "</a></strong>";
}?>