Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Na ekranie pojawia się formularz zawierający posortowaną listę wszystkich studentów (co najmniej identyfikator, nazwisko i imię):
- <br>
- <form method='post' action='pomocnicze.php'>
- <?php
- $con=pgconnect("host=test user=test dbname=test password=test");
- $query="SELECT idstudenta, nazwisko, imie FROM studenci ORDER BY nazwisko DESC";
- $result=pg_query($con, $query);
- while ($studenci= pgfetchrow($result)) {
- print("<input type=radio name='wybor' value='".$studenci['idstudenta']."' />ID: ".$studenci['idstudenta']." | Imie: ".$studenci['imie']." | Nazwisko: ".$studenci['nazwisko']."</BR>");
- }
- ?>
- <br>
- <input type="submit" value="wybierz">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement