Jump to content
php.lv forumi

tabulas dati > select


SkaKri

Recommended Posts

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....?

Link to comment
Share on other sites

×
×
  • Create New...