Home  >  Article  >  Backend Development  >  变量无法赋值是怎么回事?

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

WBOY
WBOYOriginal
2016-06-23 14:14:291308browse

$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用大写

换成大写就行了

去掉引号!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn