Codeigniter Query |
i have problem to saving data
this is my Model i use Sql Server Database function UpdateEdit($data) { $this->db->trans_start(); $sql = " update [do] set customer='" . $data['Customer'] . "', tgl='" . $data['Tgl'] . "', Notes='" . $data['Notes'] . "', Total=" . $data['Total'] . " where doid='" . $data['Doid'] . "'"; print_r($sql); $head = $this->db->query($sql); $this->db->delete("from DoDtl where Doid='" . $Doid . "'"); $this->db->query($data['Detail']); $this->db->trans_complete(); return TRUE; } |
Messages In This Thread |
Codeigniter Query - by amansusanto - 04-06-2019, 03:00 AM
RE: Codeigniter Query - by php_rocs - 04-06-2019, 12:23 PM
RE: Codeigniter Query - by amansusanto - 04-07-2019, 07:39 PM
|