Advertisement
kangjaz

model_import

Nov 2nd, 2018
4,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class App extends CI_Model {
  5.  
  6.     function __construct()
  7.     {
  8.         parent::__construct();
  9.     }
  10.  
  11.     function simpan($data = array())
  12.     {
  13.         $jumlah = count($data);
  14.  
  15.         if ($jumlah > 0)
  16.         {
  17.             $this->db->insert_batch('anggota', $data);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement