Search query codeigniter

In model

function search_data() {
   $this->db->like('title', 'match');
   $this->db->order_by('id', 'DESC');
   return $this->db->get('from_table', 5);

   // WHERE `title` LIKE '%match%'
   // 5 is limit
}

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X