Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!controller-->
- $nm = $this->input->post('kode');
- $result = array();
- foreach($nm AS $key => $val){
- $slug = url_title($_POST['judul'][$key],'-',TRUE);
- $result[] = array(
- "kode" => $_POST['kode'][$key],
- "lang" => $_POST['lang'][$key],
- "judul" => $_POST['judul'][$key],
- "ringkas" => $_POST['ringkasin'][$key],
- "lengkap" => $_POST['lengkap'][$key]
- );
- }
- $this->artikel_model->updateartikel($result);
- redirect ('admin/artikel');
- <!---model-->
- function updateartikel($result)
- {
- $this->db->update_batch('tabel_artikel', $result, 'kode');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement