Jump to content

Help with drop menu


beastylad

Recommended Posts

Hi i currenlty have adrop box filled with companies so the user can select which company they woudl like services from but the default is currently 0 and is to selecvt all firms but im unsure how to do this.

 

Current code:

<td>Taxi Firm</td><td> <select name="taxifirm">
<option value="0" selected>All Taxi Firms</option>
<?php
$sql = mysql_query("SELECT * FROM taxi_Firms"); 
	while($row = mysql_fetch_array($sql)){
		$uid = $row["Firm_ID"];
		$username = $row["Firm_Name"]; 
		echo '<option value="'.$uid.'">'.$username.'</option>' ;

	}
?>

 

amny help is welcomed :D

 

thanx

Link to comment
https://forums.phpfreaks.com/topic/259348-help-with-drop-menu/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.