2010年9月24日 星期五

[codeigniter] Full-text 全文檢索 $this->db->where 用法

Full-text 全文檢索 $this->db->where 用法


$this->db->where("MATCH (xxx,xxx) AGAINST ({$str_search})", NULL, FALSE);

記得mysql 要增加 fulltext 的index
ALTER TABLE xxx ADD FULLTEXT(xxx,xxx);

【下列文章您可能也有興趣】

沒有留言: