Mailinglisten-Archive |
$query = "select * from ref_tab"; $result = mysql_query($query,$conn_id); ?><select size=1 name=feld><? while ($erg = mysql_fetch_assoc($result)){ echo "<option value='".$erg['id']."'; if ($erg['id'] = $var) echo " selected"; echo ">".$erg['value']."</option>"; } ?></select><? Gruß Andre
php::bar PHP Wiki - Listenarchive