input->post('id_tes', true); $id_tes = $this->encryption->decrypt($id_tes); $conn = mysqli_connect("localhost","root","","ci_online_test"); $query = mysqli_query($conn, "SELECT * FROM h_ujian WHERE id = '$id_tes'"); $row = mysqli_fetch_array($query); $data = array( 'id' => $row['mahasiswa_id'], 'ujian_id' => $row['mahasiswa_id'], 'mahasiswa_id' => $row['mahasiswa_id'], 'mahasiswa_id' => $row['mahasiswa_id'], 'mahasiswa_id' => $row['mahasiswa_id'], 'mahasiswa_id' => $row['mahasiswa_id'], 'list_soal' => $row['list_soal']); $this->master->update('h_ujian', $data, 'id', $id_tes); print_r($data); print_r($id_tes); ?>