Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class App_Admin extends CI_Model {
- function __construct()
- {
- parent::__construct();
- }
- function insert($table= '', $data= '')
- {
- $this->db->insert($table, $data);
- }
- function get_all ($table)
- {
- $this->db->from($table);
- return $this->db->get();
- }
- function get_where($table = null, $where = null){
- $this->db->from($table);
- $this->db->where($where);
- return $this->db->get();
- }
- function update($table = null, $data = null, $where = null)
- {
- $this->db->update($table, $data, $where);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement