Advertisement
oDs1337

Untitled

Dec 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $sql = "SELECT * FROM Cars";
  2. $result = mysqli_query($conn, $sql);
  3.  
  4. if (mysqli_num_rows($result) > 0) {
  5.  
  6.  
  7. while($row = mysqli_fetch_row($result)) {
  8. echo " " . $row["1"]. " ";
  9.  
  10. }
  11.  
  12.  
  13. } else {
  14. echo "0 results";
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement