dimanche 1 décembre 2019

If $_POST null form input codeigniter

how to if POST NULL and else POST value ?

$data = array(
        'harga_jual' => $this->input->post('harga_jual') == '' ? NULL : $this->input->post('harga_jual')
        );

thanks

Aucun commentaire:

Enregistrer un commentaire