Return to Snippet

Revision: 68025
at November 14, 2014 22:45 by shivrajgoa


Initial Code
<?php

class Mautocomplete extends CI_Model{
    
    public function GetRow($keyword) {        
        $this->db->order_by('id', 'DESC');
        $this->db->like("name", $keyword);
        return $this->db->get('autocomplete')->result_array();
    }
}

Initial URL

                                

Initial Description
codeigniter autocomplete

Initial Title
Codeigniter-autocomplete-model

Initial Tags
php, jquery, twitter, codeigniter

Initial Language
PHP