Anonymous
Ошибка при обновлении параметра codeigniter habdesvalortot = habdesvalortot +parameter [дубликат]
Сообщение
Anonymous » 08 янв 2026, 07:22
Код: Выделить всё
$query2 = $this->db->get_where('habdesempleados',array('HabDesMes'=>$this->input->post('Mes') , 'EmplRut'=>$this->input->post('Rut'),'HabDesAno'=>$this->input->post('Ano'), 'HDTipo' =>'H' , 'Imponible' =>'True' ));
// $query2 = $this->db->get();
if($query2->num_rows() > 0){
//$this->db->set('HabDesValorTot', '`HabDesValorTot`+ 1', FALSE);
$parametro = 1;
$this->db->set('HabDesValorTot', '`HabDesValorTot` * $parametro', FALSE);
$this->db->update('habdesempleados');
}
Ошибка UPDATE habdesempleados SET HabDesValorTot = HabDesValorTot * $parametro
Имя файла: C:/wamp64/www/novatek/system/database/DB_driver.php
Номер строки: 691
Подробнее здесь:
https://stackoverflow.com/questions/718 ... -parameter
1767846158
Anonymous
[code] $query2 = $this->db->get_where('habdesempleados',array('HabDesMes'=>$this->input->post('Mes') , 'EmplRut'=>$this->input->post('Rut'),'HabDesAno'=>$this->input->post('Ano'), 'HDTipo' =>'H' , 'Imponible' =>'True' )); // $query2 = $this->db->get(); if($query2->num_rows() > 0){ //$this->db->set('HabDesValorTot', '`HabDesValorTot`+ 1', FALSE); $parametro = 1; $this->db->set('HabDesValorTot', '`HabDesValorTot` * $parametro', FALSE); $this->db->update('habdesempleados'); } [/code] Ошибка UPDATE habdesempleados SET HabDesValorTot = HabDesValorTot * $parametro Имя файла: C:/wamp64/www/novatek/system/database/DB_driver.php Номер строки: 691 Подробнее здесь: [url]https://stackoverflow.com/questions/71812981/error-in-update-parameter-codeigniter-habdesvalortot-habdesvalortot-parameter[/url]