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 ModelKategori extends CI_Model
- {
- public function data_elektronik()
- {
- $result = $this->db->get_where('tb_barang', ['kategori_brg' => 'Electronics']);
- return $result->result_array();
- }
- public function data_clothes()
- {
- $result = $this->db->get_where('tb_barang', ['kategori_brg' => 'Clothes']);
- return $result->result_array();
- }
- public function data_sports()
- {
- $result = $this->db->get_where('tb_barang', ['kategori_brg' => 'Sports']);
- return $result->result_array();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement