i have a list box to show the list of vehicle when user select the faculty. i want to list only the vehicle based on the selected faculty by user.
<td>No</td>
<td>Registration No</td>
<?php
$count = 0;
$db = mysql_connect('localhost','root')
or die ("unable to connect");
mysql_select_db('fyp',$db) or die ("able to select");
$sql="SELECT * FROM vehicle_record";
$result = mysql_query($sql) or die ("Query failed!");
while($row = mysql_fetch_array($result)){
$count = $count + 1;
?>
<select name="faculty" >
<option value="" selected>-- Please Select --</option>
<option>City Campus</option>
<option>MFI</option>
<option>BMI</option>
<option>MSI</option>
<option>MIAT</option>
<option>MICET</option>
<option>MIMET</option>
<option>RCMP</option>
</select>