I am searching a keyword in DB that is Bootjack Fire and Rescue Foundation
As there is single space after a word, my query is `
WHERE `title` LIKE '%Bootjack Fire and Rescue Foundation%'
Why are there two space after the and keyword in the search title as you can see in the query?
add query
$keyword = 'Bootjack Fire and Rescue Foundation';
$this->db->select('stores.id,store_title,store_category_id,store_sub_category_id,store_sub_category_type_id,sub_category_fourth,store_link');
$this->db->from('stores');
$this->db->join('users','users.id=stores.user_id');
$this->db->join('store_category','stores.store_category_id=store_category.id');
$where="`store_title` LIKE '%".$keyword."%'";
$this->db->where($where);
$this->db->where('store_status', 1);
$this->db->where('store_type', 2);
$this->db->where('store_category.status', 1);
$this->db->order_by('store_title','ASC');
$this->db->order_by('store_category_id');
and, unless yourdbclass does it. Is that a class of your own or a 3rd-party library?$this->db->where(), because that's what seems to be doing it.