find();改为$System->where("keywords='$keywords'")->find();即可原因:不明 以上就介绍了thinkphp where语句中的">
输入banner图图片脚本导航/分类

thinkphpwhere语句中的变量不解析

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

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

原因:不明

以上就介绍了thinkphp where语句中的变量不解析,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。