Saya ingin menampilkan image tp multi direktori
dalam folder dbase_karyawan ada 2 folder yaitu :
1. karyawan
1.1. Bcs = ani.jpg
1.2. Km = robi.jpg
1.3. Mbr = Irin.jpg
2. karyawan_subcont
2.1. Bmc = romi.jpg
2.2. Pama = dudi.jpg
2.3. Pbu = satria.jpg
Di dbase mysql udah ada path image yang diupload
  1. <table>
  2. <thead>
  3. <tr class=head>
  4. <th>No.</th>
  5. <th>Nama</th>
  6. <th>Coy.No</th>
  7. <th>Perusahaan</th>
  8. <th>Foto</th>
  9. <th>Edit</th>
  10. <th>Delete</th>
  11. <thead></tr>
  12.  
  13. <?php
  14. $result = mysql_query("select * from gambar");
  15. while ($fetch_tampil = mysql_fetch_array($result)) {
  16.  
  17. ?>
  18. <tr align="center">
  19. <td><?php echo $fetch_tampil['id'] ?></td>
  20. <td><?php echo $fetch_tampil['nama'] ?></td>
  21. <td><?php echo $fetch_tampil['coy_no'] ?></td>
  22. <td><img src="/<?php echo $fetch_tampil['gambar'];?>' alt="" width=50 height=20></td>
  23. <td> <a href="edit_gambar.php?aksi=edit&id=<?php echo $fetch_tampil['id'] ?>"><img src=images/edit.gif /></a></td>
  24. <td> <a href="?aksi=hapus&id=<?php echo $fetch_tampil['id'] ?>"><img src=images/delete.gif /></a></td>
  25. </tr>
  26. <?php
  27. }
  28. ?>
Imagenya belom muncul master..tolong dibantu
14770
Please login to answer!
/sangkep/answer/add-json/nogzip/1
/sangkep/answer/send-notification
User Paling Aktif Bulan Lalu

Asrianor

Point Bulan Lalu: 6