嗨,我是 php 新手,知识很少,在我的 where 语句中,我有 where Status='A' 和 z.zoneID=1,有没有办法让页面用户控制 z.zoneID=1,以便他们可以通过下拉列表将其更改为任何可用的 zoneID?
////////Query & Data Display is here/////////
$q=mysql_query("select r.*, f.Functionname, m.Managername, z.Zonename from requests as r inner join functions as f on r.functionID = f.functionID inner join managers as m on r.managerID = m.managerID inner join zones as z on r.zoneID = z.zoneID where Status='A' and z.zoneID=1 order by Functionname");
echo "<table>
<tr>
<th>Function</th>
<th>Manager</th>
</tr>"
;
while($nt=mysql_fetch_array($q)){
echo"<b>Zone: $nt[Zonename]<br>Capacity: $nt[Zonecapacity]</b><br><br>";
echo "<tr><td>$nt[Functionname]</td><td>$nt[Managername]</td></tr>";
}
echo "</table>";
/////////////////////////////////////