$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了 为什么为什么?????
最佳答案