Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con=pg_connect("host=sbazy dbname=s188580 user=s111111 password=x");
- $query="SELECT id_studenta, nazwisko, imie FROM _studenci
- ORDER BY nazwisko";
- $result=pg_exec($con, $query);
- $student1=pg_result($result,0,0);
- $student2=pg_result($result,1,0);
- $student3=pg_result($result,2,0);
- $student4=pg_result($result,3,0);
- $student5=pg_result($result,4,0);
- $student6=pg_result($result,5,0);
- print "Wybierz studenta, aby pobrac informacje na jego temat.<br>";
- echo "<form action=\"submit.php\" method=\"post\">
- <select name=\"nazwa_grupy\" size=\"4\">
- <option value=\"$student1\" />$student1<option value=\"$student2\" />$student2
- <option value=\"$student3\" />$student3<option value=\"$student4\" />$student4
- <option value=\"$student5\" />$student5<option value=\"$student6\" />$student6
- </select><br><input type=\"submit\" /></form>"
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement