Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET['file_id'])) {
- $id = $_GET['file_id'];
- include('config.php');
- $cone = mysqli_connect('localhost','root','','gis');
- $sql = mysqli_query($cone, "SELECT file FROM tb_tempat");
- if(mysqli_num_rows($sql) > 0){
- while($data = mysqli_fetch_assoc($sql)){
- echo '
- <td><a href="'.$data['file'].'">'.$data['file'].'</a></td>
- ';
- }
- }else{
- echo '
- <tr bgcolor="#fff">
- <td align="center" colspan="4" align="center">Tidak ada data!</td>
- </tr>
- ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement