Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $imie=$_POST['a'];
- $nazwisko=$_POST['b'];
- $db=new mysqli('localhost', 'root', '', 'first');
- $wstaw=$db->query("insert into ucznie set imie='$imie', nazwisko='$nazwisko'");
- $pokaz=$db->query("select * from ucznie");
- while($row=$pokaz->fetch_assoc()){
- echo "<tr><td>".$row['id'].". "."</td><td>".$row['imie']." "."</td><td>".$row['nazwisko']."</td></tr><br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement