$where['yuyuetime']=date('Y-m-d H:i:s');
$where['state']=0;
$where['userid']=session('id');
$yuyue=M('yuyue');
$biaotable=M('biao');
//exit;
if(session('id')==NULL)
{
$this->error("请登陆","__APP__/Login");
}
else
{
$biaoresulr=$biaotable->where('id=%d',$where['id'])->select();
dump($biaoresulr);//这里可以完全输出
dump($biaoresulr['id']);//这里是NULL,怎么回事啊??????
}
最佳答案