且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当where子句具有指定值时,单个过滤器不起作用

更新时间:2023-10-23 14:28:28

您可能应该看看那是beeing的确切查询级联,因为其中存在语法错误。尝试查看最后的 $ where (或者更好的是整个查询,因为那是错误的内容)

You should probably look at the exact query thats beeing concatenated, since theres a syntax error in it. Try to look at what $where becomes in the end (or better, the entire query, since thats whats has the error)

猜测,最后一行的开头可能需要空格

Guessing, theres possibly a need for a space at the start of your last line

   $where = ' WHERE '.$where;