mhome->;
public function __construct()
{
parent::__construct();
// $this->load->helper('form');
// $this->load->library('form_validation');
$this->load->model('model');
$this->load->model('m_tabel_ss');
}
function index() {
header('Access-Control-Allow-Origin: *');
// if ($this->input->post('proses') == 'coba2') {
// // print_r($this->input->post('img_data'));
// define('UPLOAD_DIR', 'images/');
// $image_parts = explode(";base64,", $_POST['img_data']);
// $image_type_aux = explode("image/", $image_parts[0]);
// $image_type = $image_type_aux[0];
// $image_base64 = base64_decode($image_parts[0]);
// $file = UPLOAD_DIR . 'heheh.jpg';
// file_put_contents($file, $image_base64);
// }
if ($this->input->post('proses') == "cari") {
$cari_data = $this->model->tampil_data_where('tb_list_barang',array('id' => $this->input->post('id')))->result();
if (count($cari_data) > 0 ) {
?>