menggunakan mysql di libraries codeigniter

http://stackoverflow.com/questions/15051228/using-mysql-in-codeigniter-library


using mysql in codeigniter library


class Dtables {

    private $CI;

    function __construct()
    {
        $this->CI =& get_instance();
        $this->CI->load->database(); 
    }

    function mysql()
    {
        $sQuery ="//some mysql query string";
        $this->CI->db->query($sQuery);
    }
}

Subscribe to receive free email updates:

0 Response to "menggunakan mysql di libraries codeigniter"

Post a Comment