Hadi1989

Untitled

Jul 10th, 2018
198
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.     require_once 'conn.php';
  3.    
  4.     $query = $conn->query("SELECT * FROM `upload`");
  5.    
  6.     while($fetch = $query->fetch_array()){
  7.         echo '<img src="'.$fetch['location'].'" width="250px" height="200px" style="margin-top:10px; margin-bottom:10px;"/>';
  8.     }
  9.    
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment