Reputation: 29
take below, using Query Builder Class:
public function search($saq)
{
$array=$this->db
->select()
->order_by('id', 'DESC')
->where("name Like '$saq%'")
->get('products');
return $array->result();
}
Would this give a correct CodeIgniter query ?
Upvotes: 1
Views: 1143