我的代码是PHP复制代码
$this->db->set('show', 'show+1', FALSE);
$this->db->where('id', $id);
$this->db->update($this->_table_name);
复制代码
但是页面报错了
Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show = show+1 WHERE `id` = '1'' at line 1 UPDATE `link` SET show = show+1 WHERE `id` = '1' Filename: D:/www/sscms/application/models/link_m.php Line Number: 14
|