application/controllers/Dashboard.php
// Mengupdate profil mahasiswa (setelah diedit)
Mengupdate profil mahasiswa (setelah diedit)
Mengupdate profil mahasiswa ( setelah diedit )
public function profil_update()
	{
		$data = array(
			'handphone' => $this->input->post('mhs_phone'),
			'kota_lahir' => $this->input->post('mhs_birthplace'),
			'tgl_lahir' => date_format(date_create($this->input->post('mhs_birthdate')),'Y-m-d'),
			'alamat' => $this->input->post('mhs_address'));
		$this->db->update('tb_mahasiswa', $data, array('nim' => $this->mhs_id));
		redirect(base_url('dashboard/profil'),'refresh');
	}
public function profil_update ( ) { $ data = array ( 'handphone' => $ this -> input -> post ( 'mhs_phone' ) , 'kota_lahir' => $ this -> input -> post ( 'mhs_birthplace' ) , 'tgl_lahir' => date_format ( date_create ( $ this -> input -> post ( 'mhs_birthdate' ) ) , 'Y-m-d' ) , 'alamat' => $ this -> input -> post ( 'mhs_address' ) ) ; $ this -> db -> update ( 'tb_mahasiswa' , $ data , array ( 'nim' => $ this -> mhs_id ) ) ; redirect ( base_url ( 'dashboard/profil' ) , 'refresh' ) ; }
Mengupdate profil mahasiswa (setelah diedit)
Mengupdate profil mahasiswa ( setelah diedit )