Advertisement
j0h4n54ntr1

product_m

Jul 28th, 2018
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Product_m extends CI_Model {
  5.  
  6.  
  7.     public function index()
  8.     {
  9.  
  10.          $query = $this->db->get('products', 4);
  11.                 return $query->result();
  12.     }
  13.     public function load()
  14.     {
  15.         $tambah=$_POST['tambah'];
  16.         $query = $this->db->get('products',$tambah);
  17.                 return $query->result();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement