变量无法赋值是怎么回事?

原创
2016-06-23 14:14:29 1014浏览

$Starttime=$_get["starttime"];
$Endtime=$_get["endtime"];
$Time_temp="and createdate>='$Starttime' and createdate
$starttime,$endtime都有值,请问
echo $time_temp输入为:
and createdate>='' and createdate 是怎么回事?


回复讨论(解决方案)

$Starttime=$_ GET["starttime"];
$Endtime=$_GET["endtime"];

注意大小写

$Starttime=$_ GET["starttime"];
$Endtime=$_ GET["endtime"];
$ Time_temp="and createdate>='$Starttime' and createdate
$starttime,$endtime都有值,请问
echo $ time_temp输入为:
and createdate>='' and createdate 是怎么回事?

$_GET用大写

换成大写就行了

去掉引号!!!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。