Codeigniter-autocomplete-model


/ Published in: PHP
Save to your folder(s)

codeigniter autocomplete


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.