Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,I'm trying to enable a combo box sort of thing for an existing drop down menu but i seem to be getting no where with that.It would be wonderful if someone could help me out with this issue.


PHP
<td>
											Part Number
										</td>
										<td>
											<select class=\"".$klasse_ausw["aggregat_ausw_drpd"]."\" name=\"aggregat_ausw_drpd\"  style=\"width:90pt; size:1;\">
												<option value=></option>";

$sql_aggregat_ausw3_drpd="SELECT * FROM vers_einl_aggregatnummer ORDER BY vers_einl_aggregatnummer.aggr_nr ASC";
$result_aggregat_ausw3_drpd=mysql_query($sql_aggregat_ausw3_drpd);
while($row_aggregat_ausw3_drpd=mysql_fetch_array($result_aggregat_ausw3_drpd)){
	extract($row_aggregat_ausw3_drpd, EXTR_PREFIX_ALL, "ausw3");
	echo '										<option value="'.$ausw3_id.'"';
	if(($_POST["aggregat_ausw_drpd"]==$ausw3_id) || ($_GET["aggregat_ausw_drpd"]==$ausw3_id)){
		echo ' selected';
	}
	echo '										>'.$ausw3_aggr_nr.'</option>';
}
echo "										</select>
										</td>
									</tr>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900