在display之前 setInc只行了两次???

浏览:658 发布日期:2013/08/07 分类:求助交流 关键字: setInc
public function index(){
$id=I('id','');
if($id==''){
$this->error('你访问的页面不存在');
}
$msay=M('say');
$msay->where('id='.$id)->setInc('click');
$say=$msay->where('id='.$id)->select();

if($say){
$member=M('member')->where('id='.$say['userid'])->field('id,imagepath,nick')->find();
$this->assign('say',$say);
$this->assign('user',$member);

if($say['infotype']==1){

$this->display('detailscai');

}else if($say['infotype']==2){
$this->display('detailszm');
}else{
$this->display('detailsgx');
}
}else{
$this->error('你访问的页面不存在');
}

}


执行完之后发现 数据库里的click字段加2了 为什么为什么?????
最佳答案
评论( 相关
后面还有条评论,点击查看>>