Advertisement
Sparkster

Untitled

Jan 30th, 2018
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1.     <?php
  2.  
  3.     $query = $pdo->prepare("SELECT restaurant.* FROM carrot_town");
  4.     $query->bindValue();
  5.     $query->execute();
  6.     $restaurants = $query->fetch();
  7.  
  8.     foreach ($pdo->query($restaurants) as $restaurant) {
  9.       echo $restaurant;
  10.     }
  11.  
  12.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement