0

I'm having a trouble getting data from my database; Here's my code

<?php
 require('connectionT.php');

 $result= mysqli_query($con, "SELECT * FROM restaurants");
 while($row=mysqli_fetch_assoc($result))
  {
        $tmp[]=$row;

  }

  echo json_encode ($tmp);

?>

When I execute my code, I just get a blank page. Anyone?

0 Answers0