Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <?php
  2. require "weinstuk.php";
  3. echo "<table id='hor-minimalist-a'>";
  4. echo "<thead>";
  5. echo "<tr>";
  6. echo "<th scope='col'>Jazdenie</th>";
  7. echo "<th scope='col'></th>";
  8. echo "<th scope='col'></th>";
  9. echo "<th scope='col'>Cena</th>";
  10. echo "</tr>";
  11. echo "</thead>";
  12. echo "<form action='upravtabulka.php' method=post>";
  13. $result = mysql_query("select * from cennik");
  14. while($row = mysql_fetch_array($result)) {
  15. $text=$row['text'];
  16. $cena=$row['cena'];
  17. echo "<tbody>";
  18. echo "<tr>";
  19. echo "<td>";
  20. echo "Text:<br /> <textarea rows='1' cols='50' name='text'>" . $text . "</textarea><br /> <br /> ";
  21. echo "</td>";
  22. echo "<td></td>";
  23. echo "<td></td>";
  24. echo "<td>";
  25. echo "Cena:<br /> <textarea rows='1' cols='25' name='cena'>" . $cena . "</textarea><br /> ";
  26. echo "</td>";
  27. echo "</tr>";
  28. echo "</tbody>";
  29. }
  30. echo "<input type='submit' name='sent' class='button'>";
  31. echo "</form>";
  32. echo "</table>";
  33.  
  34. ?>
Add Comment
Please, Sign In to add comment