All pastes #613096 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-10 20:14 UTC
rendered paste body
<select name="Przedmiot">
<?
$Przedmiot=" SELECT DISTINCT \"Przedmiot\" \n
        FROM \"Przedmiot\" \n
        ORDER BY \"Przedmiot\"";

$wynik=pg_query($Przedmiot);
while ($row=pg_fetch_array($wynik))
{
echo"<OPTION VALUE=".$row['idPrzedmiot'].">".$row['Przedmiot']."</Option>";

}
pg_free_result($wynik);
?>

</select>