Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript PHP MySQL
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.
 

<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 27-Nov-12 4:26am

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



Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100