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
Post a Comment