|

Exploring the beauty of technology and design through code.

CI 框架 MySQL 字段自增,累加计数,减数

function click($id){
    $this->db->where('openid', $openid);
    $this->db->set('click','click + 1',FALSE);
    $this->db->update('table');
}

登录后参与讨论