Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "weinstuk.php";
- echo "<table id='hor-minimalist-a'>";
- echo "<thead>";
- echo "<tr>";
- echo "<th scope='col'>Jazdenie</th>";
- echo "<th scope='col'></th>";
- echo "<th scope='col'></th>";
- echo "<th scope='col'>Cena</th>";
- echo "</tr>";
- echo "</thead>";
- echo "<form action='upravtabulka.php' method=post>";
- $result = mysql_query("select * from cennik");
- while($row = mysql_fetch_array($result)) {
- $text=$row['text'];
- $cena=$row['cena'];
- echo "<tbody>";
- echo "<tr>";
- echo "<td>";
- echo "Text:<br /> <textarea rows='1' cols='50' name='text'>" . $text . "</textarea><br /> <br /> ";
- echo "</td>";
- echo "<td></td>";
- echo "<td></td>";
- echo "<td>";
- echo "Cena:<br /> <textarea rows='1' cols='25' name='cena'>" . $cena . "</textarea><br /> ";
- echo "</td>";
- echo "</tr>";
- echo "</tbody>";
- }
- echo "<input type='submit' name='sent' class='button'>";
- echo "</form>";
- echo "</table>";
- ?>
Add Comment
Please, Sign In to add comment