Zend fetchRow() 不工作
我试图使用 where 语句获取一行,但由于某种原因它向我抛出一个错误。
这是这条线 $row = $this->getDbTable()->fetchRow("order = $order");
我已经放了一个 die();在这条线之前它确实死了, 然后我放了一个 die();在此行之后,die() 不会执行,但会抛出错误。
该错误对我没有多大帮助,它只说“发生错误应用程序错误”,我的 php 错误日志中也没有任何内容。
帮助!
I'm trying to fetch a row with a where statement but for some reason it throws an error at me.
This is the line$row = $this->getDbTable()->fetchRow("order = $order");
I've put a die(); before this line and it does die,
Then I've put a die(); after this line and the die() doesn't get executed but throws an error.
The error doesn't help me much it only says "An error occurred Application error", there's nothing in my php error log either.
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的评论,我会尝试“正确”执行
where
部分?例如:您需要按
order
选择的情况是什么?有可以选择的主键吗?更新:
鉴于您的评论,也许可以直接使用
update
:Going by your comments, I would try doing the
where
part 'properly'? E.g.:What is the situation you are needing to select by
order
? Is there a primary key you can select by?Update:
Given your comments, maybe use
update
directly: