时间:2021-07-01 10:21:17 帮助过:34人阅读
$sql = 'select * from phone';
if(isset($_GET['yy'])){
echo "hjfkgljfdfffffffffffffff";//经测试 没有输出,即没有接到值
$screen=$_GET["screen"];
$moshi=$_GET["moshi"];
$system=$_GET["system"];
$xilie=$_GET["xilie"];
if ($moshi !='0'){
if(strpos($sql,'where'))
$sql.=' and `p_moshi`='.$moshi;
else
$sql.=' where `p_moshi`='.$moshi;
}
if ($screen!='0'){
if(strpos($sql,'where'))
$sql.=' and `p_screen`='.$screen;
else
$sql.=' where `p_screen`='.$screen;
}
if ($system!='0'){
if(strpos($sql,'where'))
$sql.=' and `p_system`='.$system;
else
$sql.=' where `p_system`='.$system;
}
if ($xilie!='0'){
if(strpos($sql,'where'))
$sql.=' and `p_xilie`='.$xilie;
else
$sql.=' where `p_xilie`='.$xilie;
}
}
echo $sql.'