Posted By

shivrajgoa on 11/14/14


Tagged

php jquery twitter codeigniter bootstrap


Versions (?)

Codeigniter-autocomplete-model


 / Published in: PHP
 

codeigniter autocomplete

  1. <?php
  2.  
  3. class Mautocomplete extends CI_Model{
  4.  
  5. public function GetRow($keyword) {
  6. $this->db->order_by('id', 'DESC');
  7. $this->db->like("name", $keyword);
  8. return $this->db->get('autocomplete')->result_array();
  9. }
  10. }

Report this snippet  

You need to login to post a comment.