MYSQL AND PHP FULL TEXT SEARCH -


i have following 2 queries:

$s_name = $this->input->post('check_sur_name');         $sql = "select * patient match(s_name) against ('$s_name' in boolean mode ) or match(f_name) against (''  in boolean mode)";         $query = $this->db->query($sql);         $query = $query->result_array();          echo json_encode($query); 

and second one:

$sql = "select * patient match(s_name) against ('mugabe' in boolean mode ) or match(f_name) against (''  in boolean mode)"; $query = $this->db->query($sql); $query = $query->result_array();  echo json_encode($query); 

the second script runs , gives me feedback first 1 keeps failing, please advise have done wrong in first script?


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -