我有这样的代码:
$ads = Ad::find('all', array('order' => 'select_visits desc', 'limit' => 20, 'conditions'=>array('active = 1')));
我想将所有 $ads、select_visits 字段更新为 select_visits+1,我该怎么做?
我有这样的代码:
$ads = Ad::find('all', array('order' => 'select_visits desc', 'limit' => 20, 'conditions'=>array('active = 1')));
我想将所有 $ads、select_visits 字段更新为 select_visits+1,我该怎么做?