选择状态的代码我是这样写的,可是执行不了,提示语法错误 if %{$_REQUEST['zhuangtai']}%="完成" then $q = "SELECT * FROM research where banben like '%{$_REQUEST['banben']}%' AND linename like '%{$_REQUEST['xianlu']}%' AND zhuangtai='fin' order by busname asc"; elseif %{$_REQUEST['zhuangtai']}%="未完成" then $q = "SELECT * FROM research where banben like '%{$_REQUEST['banben']}%' AND linename like '%{$_REQUEST['xianlu']}%' AND zhuangtai='new' order by busname asc";
//クエリ条件を制御します🎜> //if %{$_REQUEST['zhuangtai']}%="Complete" then
$q = "SELECT * FROM Research where banben like '%{$_REQUEST['banben' ]}%' AND linename like '%{$_REQUEST['xianlu']}%' AND zhuangtai='fin' バス名 asc 順"; //elseif %{$_REQUEST['zhuangtai']}%= "未完了" then //$q = "SELECT * FROM Research where banben like '%{$_REQUEST['banben']}%' AND linename like '%{$_REQUEST['xianlu']}%' AND zhuangtai='new' order by Busname asc";
//mysql_query("SET NAMES GB2312"); //文字化けを防ぐ $rs = mysql_query($q); // data set $assoc= mysql_num_rows($rs);///元々使用されていた、影響を受ける行の数 mysql_fetch_assoc echo "$assoc";