Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Upload Gambar dengan PHP
Mau tanya dong kenapa yah gambar yang sudah saya upload tidak tampil di form, padahal di database berhasil menyimpan file gambar tersebut ?
[/code]
No. VendorNama VendorPhotoNama
[/code]
0
6 Jawaban:
coba $photo = $row['photo']; ![](path/to/<?php echo $photo; ?>)
0
<div class="container">
<table class="table table-bordered table-responsive" style="margin-bottom:0px">
<tr bgcolor='#4EB1BA'>
<th>No. Vendor</th>
<th>Nama Vendor</th>
<th>Photo</th>
<th>Nama</th>
</tr>
<?php
while ($row=mysqli_fetch_array($res)): ?>
<tr>
<td><?php echo $row ["novendor"];?></td>
<td><?php echo $row ["namaperusahaan"];?></td>
<td>
<!-- harap perhatikan tag -->
<img src="<?= $row['photo']; ?>" width="50" height="50">
</td>
<td><?php echo $row ["nama"];?></td>
</tr>
<?php endwhile; ?>
</table>
</div>
0
kakak move_upload_file-nya masuk folder apa kak?
0
pastikan juga sirectory tempat penyimpanan fotonya sesuai gan,kalo ga sesuai ga akan muncul di browser fotonya
0