关于如何解决PHPCMS V9内容搜索显示不全问题解决方案

进入到phpcms/modules/search/index.php文件。

找到以下代码:

if(!empty($segment_q)) {

$sql = “`siteid`= ‘$siteid’ AND `typeid` = ‘$typeid’ $sql_time AND MATCH (`data`) AGAINST (‘$segment_q’ IN BOOLEAN MODE)”;

} else {

$sql = “`siteid`= ‘$siteid’ AND `typeid` = ‘$typeid’ $sql_time AND `data` like ‘%$q%’”;

}

把以上代码替换为:

$sql = “`siteid`= ‘$siteid’ AND `typeid` = ‘$typeid’ $sql_time AND `data` like ‘%$q%’”;

 

复制后注意修改下双引号和单引号。

posted @ 2018-04-06 15:42  undefined-  阅读(237)  评论(0编辑  收藏  举报