Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. $connect = mysqli_connect('localhost', 'root', '', 'wynajem');
  3. $query = mysqli_query($connect, "select samochody.id, samochody.model, telefon from samochody inner join zamowienia on samochody.id=zamowienia.Samochody_id");
  4. if (mysqli_num_rows($query)>0)
  5. {
  6. while($row=mysqli_fetch_assoc($query)) {
  7. echo " " .$row['id']." ".$row['model'] ." ".$row['telefon']."<br> ";
  8. }
  9. }
  10. mysqli_close($connect);
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement