thinkphp where话语中的变量不解析

thinkphp where语句中的变量不解析

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


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


原因:不明