Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $polaczenie=mysqli_connect('localhost','root','','poradnia');
  2. $sql="SELECT id, imie, nazwisko, choroba FROM pacjenci";
  3. $wynik=mysqli_query($polaczenie,$sql);
  4. while($wiersz=mysqli_fetch_assoc($wynik)) {
  5. echo '<p>'.$wiersz["id"].' '.$wiersz["nazwisko"].' '.$wiersz["choroba"].'</p>';
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement