Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. if (isset($_GET['file_id'])) {
  3. $id = $_GET['file_id'];
  4. include('config.php');
  5. $cone = mysqli_connect('localhost','root','','gis');
  6. $sql = mysqli_query($cone, "SELECT file FROM tb_tempat");
  7. if(mysqli_num_rows($sql) > 0){
  8.  
  9. while($data = mysqli_fetch_assoc($sql)){
  10. echo '
  11.  
  12.  
  13. <td><a href="'.$data['file'].'">'.$data['file'].'</a></td>
  14.  
  15.  
  16. ';
  17.  
  18. }
  19. }else{
  20. echo '
  21. <tr bgcolor="#fff">
  22. <td align="center" colspan="4" align="center">Tidak ada data!</td>
  23. </tr>
  24. ';
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement