$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');
}
错误更新habdesempleados
设置HabDesValorTot = HabDesValorTot
* $参数
文件名:/wamp 64/www/novatek/系统/数据库/DB_驱动程序. php
行号:691
1条答案
按热度按时间zed5wv101#
您应该使用连接运算符('.')将**'
HabDesValorTot
*'字符串与$parametro**变量连接起来试试这个