码迷,mamicode.com
首页 > Web开发 > 详细

thinkphp where语句中的变量不解析

时间:2015-01-14 16:52:18      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:php   thinkphp   

解决办法:将where语句中的变量用单引号引起来就行了,亲测可用


举例:将$System->where("keywords=$keywords")->find();改为$System->where("keywords=‘$keywords‘")->find();即可


原因:不明

thinkphp where语句中的变量不解析

标签:php   thinkphp   

原文地址:http://blog.csdn.net/u012730333/article/details/42711747

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!