PHPCMS 解决有多条数据搜索只出现一条
发表时间: 2015-10-13 14:02:55 | 浏览次数:
在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%'";
上一篇:PHPCMS 会员登录使用用户名或邮箱
下一篇:PHPCMS 修改后台登录地址