Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('no direct script has allowed');
- class Welcome extends CI_Controller {
- function __construct(){
- parent::__construct();
- $this->load->model('m_data');
- $this->load->helper('url');
- public function add(){
- $this->load->view('add');
- }
- public function adding(){
- $data = array(
- 'nama'=>$this->input->post('nama'),
- 'kelas'=>$this->input->post('kelas'),
- 'jurusan'=>$this->input->post('jurusan'),
- 'email'=>$this->input->post('email'),
- 'website'=>$this->input->post('website'),
- );
- $this->m_data->adding('data_siswa',$data);
- redirect();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment