Advertisement
Guest User

Untitled

a guest
May 26th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. $c=pg_connect("host=sbazy user=s200805 dbname=s200805 password=01234");
  3. $query="select nazwisko from studenci where id_studenta=5";
  4. print "elo";
  5. print "<form method=post name=kolos7>";
  6. $r=pg_exec($c,$query);
  7. $numOfRows=pg_numrows($r);
  8. $numOfCols=pg_numfields($r);
  9. for($i=0;$i<$numOfRows;$i++){
  10. for($j=0;$j<$numOfCols;j++){
  11. $r2=pg_result($r,$i,$j);
  12. print "<input type=text name=tak value=$r2>";
  13. }
  14. }
  15.  
  16. print "</form>";
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement