字符串问题

mailghyth 2009-09-21 01:08:11
$select = $read->select()
->from(array('cp'=>$categoryProductTable));
-join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array())
-joinNatural(array('ea'=>$eavAttributeTable))
->where('cp.category_id=?',$categoryId)
->where('pei.value=1')
->where('ea.attribute_code="featured"');

这是程序的一段,运行提示->where('ea.attribute_code="featured"'); 的错误是
Parse error: syntax error, unexpected ';' in /var/www/app/code/local/Cartz/Hotel/Block/Featured.php on line 29

怎么瞧怎么看,怎么改都解决不了。帮下忙,谢谢。
...全文
52 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
江南昆虫 2009-09-21
  • 打赏
  • 举报
回复
好像多了一个";",少了2个">"
江南昆虫 2009-09-21
  • 打赏
  • 举报
回复
->from(array('cp'=>$categoryProductTable));
->join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array())
->joinNatural(array('ea'=>$eavAttributeTable))

江南昆虫 2009-09-21
  • 打赏
  • 举报
回复

->from(array('cp'=>$categoryProductTable));
->join(array('pei'=>$productEntityIntTable,'pei.entity_id=cp.pruduct_id',array())
->joinNatural(array('ea'=>$eavAttributeTable))
zhongqixing1104 2009-09-21
  • 打赏
  • 举报
回复
这个什么写法?感觉好怪异
dahaidao 2009-09-21
  • 打赏
  • 举报
回复
把整段注释一下,然后一点一点排错。
xuzuning 2009-09-21
  • 打赏
  • 举报
回复
在 29 行处发现之前的代码没用行结束符

21,886

社区成员

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

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