Код: Выделить всё
$this->sales_model->softdelete_order($this->input->post('ordernumber'));Что я хочу сделать, в моей модели
Код: Выделить всё
update Customer_Order_Summary set Deleted='1' where CustomerOrderID='123', где 123 is $ this-> input-> post ('ordernumber')
Синтаксис моей модели:
Код: Выделить всё
function softdelete_order($q){
$this->db->set('Deleted','1');
$this->db->where('CustomerOrderID', $q);
$query = $this->db->update('Customer_Order_Summary');
}
Подробнее здесь: https://stackoverflow.com/questions/164 ... ble-record
Мобильная версия