SkaKri Posted May 14, 2006 Report Posted May 14, 2006 kādēļ fecho (' <select name="aaa" class="textbox"> <option value="">izveelne</option> '); $query = "SELECT bbb FROM ccc WHERE kakjis='1' ORDER BY bbb ASC;"; $query_result = mysql_query ($query) or die (mysql_error()); while ($ddd=mysql_fetch_array($query_result)) { $ccc[]=$ddd['bbb']; } unset ($ddd); reset ($ccc); while (list($k, $val) = each($ccc)) { fecho ('<option value="'.$val.'">'.$val.'</option>'); } fecho (' </select> izvada sarakstu 2x....?
Recommended Posts