[eluser]smartweb[/eluser]
My wrong class here
function getproudctsList($page,$pagesize,$class,$region)//产品列表
{
//$sql = "select * from coname_infor where match (coname) AGAINST ('".$t."*' IN BOOLEAN MODE) ";
//
$str_search=$class." ".$region."*";
$query=$this->db->where("MATCH (`title`,`body`) AGAINST ('$str_search' IN BOOLEAN MODE)")->get("test");
$this->total ==$query->num_rows();
$query=$this->db->where("MATCH (`title`,`body`) AGAINST ('$str_search' IN BOOLEAN MODE)")->get("test",$pagesize,$page)->result_array();
return $query;
}
return error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AGAINST ('all all*' IN BOOLEAN MODE)' at line 3