startend
注册会员

UID 105521
精华
0
积分 52
帖子 42
金钱 52 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2008-1-2
状态 离线
|
[推荐阅读] 大家都在发春?
if(trim($_POST['car'])!="")
$sql="select * from carinfo where car='$_POST['car']'";
else if((trim($_POST['select'])==""))
$sql="select * from carinfo where company='$_POST['select']'";
else if((trim($_POST['car2'])!=""))
$sql="select * from carinfo where car2='$_POST['car2']'";
else if((trim($_POST['select2'])==""))
$sql="select * from carinfo where company2='$_POST['select2']'";
else if(1==1){
$sql="select * from carinfo";
}
$_POST["参数名"],要有双引号或单引号
|
|