shev_anto

maddProduk

Sep 22nd, 2017
3,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. if (!defined('BASEPATH'))
  3.     exit('No direct script access allowed');
  4.  
  5. class Mproduk extends CI_Model {
  6.  
  7.         function __construct () {
  8.         parent::__construct();
  9.        
  10.         }
  11.  
  12.     function produk(){
  13.         return $this->db->get('produk');
  14.     }
  15.     function addProduk($add){
  16.         return $this->db->insert('produk',$add);
  17.     }
  18.    
  19. }
Advertisement
Add Comment
Please, Sign In to add comment