PHPCMS 解决有多条数据搜索只出现一条

在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%'"; 

欢迎转载,原文地址:http://www.lrfun.com/html/technology/PHPCMS/2015/1013/80.html

上一篇:PHPCMS 会员登录使用用户名或邮箱
下一篇:PHPCMS 修改后台登录地址