where查询变量怎么查?

浏览:5069 发布日期:2013/01/09 分类:求助交流 关键字: where
where查询变量怎么查?
$this-> wzbr = M('a')->where('id=2')->getField('nr');
$this-> nrxx = M('aa')-> where(" id=$wzbr") ->find();

结果中:$wzbr 值为 数字2。
在aa表中 'id=2'就是正常的,而"id=$wzbr",就读不到东西了.
最佳答案
评论( 相关
后面还有条评论,点击查看>>