Parse error: syntax error, unexpected '}'错误如何解决

东北小猫 2012-07-20 08:47:03
<?
$msg_res = ar::liebiao("ar_news"," where diqu_c=40 and ClassID=$sp order by id desc limit 5");
while($msg_3=$db->fetch_array($msg_res))
{
?>
<tr>
<td width="20" height="26"><img src="images/an02.jpg" width="11" height="11" /></td>
<td width="499" height="26" align="left"><a href="content.php?id=<?=$msg_3['id']?>"><?=$msg_3['Title']?></a></td>
<td width="160" height="26" align="center" class="hz3">现价:<?=$msg_3['price_new']?>元/人</td>
</tr>
<tr>
<td height="1" colspan="4" background="images/line.jpg"></td>
</tr>
<?php
}
?>
这段代码运行报错,php5.4.4下,错误显示为:Parse error: syntax error, unexpected '}',php5.3下正常。
如何解决,谢谢指点。
...全文
13335 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
东北小猫 2012-07-20
  • 打赏
  • 举报
回复
谢谢指教。
黄袍披身 2012-07-20
  • 打赏
  • 举报
回复
在5.44 php.ini 打开 短标签的支持. short_open_tag = On

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧