Created
April 2, 2018 04:36
-
-
Save mzaini30/6b8ba12bc9b7cc24ebab7d2005dccbb0 to your computer and use it in GitHub Desktop.
Mengapa data yang tersimpan di database adalah data kosong yang di initialise?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ktp = $this->input->post('ktp'); | |
$nama = $this->input->post('nama'); | |
$gender = $this->input->post('gender'); | |
$alamat = $this->input->post('alamat'); | |
$foto_diri = ''; // mengapa yang ini yang tersimpan di database? | |
$username = $this->input->post('username'); | |
$password = $this->input->post('password'); | |
// main upload gambar | |
$config['upload_path'] = './gambar/foto_diri/'; | |
$config['allowed_types'] = 'gif|jpg|png'; | |
$config['encrypt_name'] = TRUE; | |
$this->load->library('upload', $config); | |
if ($this->upload->do_upload('foto_diri')){ | |
$foto_diri = $this->upload->data()['file_name']; // seharusnya yang ini yang tersimpan di database | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment