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

WBOY
Release: 2016-06-23 14:14:29
Original
1309 people have browsed it

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

换成大写就行了

去掉引号!!!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template