Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <form action="dod2.php" method="post">
  2. Imie: <input type="text" name="imie" /><br><br>
  3. Nazwisko: <input type="text" name="nazwisko" /><br><br>
  4. Wiek: <input type="number" name="wiek" /><br><br>
  5. <select name="klub">
  6. <?php
  7. $jeden = "SELECT id,nazwa FROM kluby";
  8. $result = mysqli_query($connection, $jeden);
  9.  
  10. while($rows = mysqli_fetch_assoc($result)) {
  11. echo '<option value="'.$rows['id'].'">'.$rows['nazwa'].'</option>';
  12. }
  13.  
  14. ?>
  15. </select>
  16.  
  17. <input type="submit" />
  18. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement