| <link href="style.css" rel="stylesheet" type="text/css" media="screen" /> |
| <? |
| include ("koneksi.php"); |
| $sql= "select * from tambah"; |
| $download=mysql_query($sql) or die (mysql_error($db)); |
| |
| $cek=mysql_num_rows($download); |
| $c = 0; |
| |
| if($cek){ |
| ?> |
| <div style='overflow:scroll; height:500px;'> |
| <p align="center"><strong>R yoo </strong></p> |
| <table width="580" height="59" border="1" align="center" class="datatable"> |
| <tr> |
| <th width="31" height="23">No</th> |
| <th width="99">Deskripsi</th> |
| <th width="73">Gambar</th> |
| <th width="73">Suara</th> |
| <th width="27">Edit</th> |
| <th width="25">Del</th> |
| </tr> |
| <? |
| while($row=mysql_fetch_array($download)){ |
| ?> |
| <tr> |
| <td align='center' valign='top'><?=$row['id_tambah'];?></td> |
| <td align='left' valign='top'><?=wordwrap($row['deskripsi']); ?></td> |
| |
| <td align='center' valign='top'> |
| |
| <img src="foto/<?php echo $row['nama_file']; ?>" width="50" height="50" border="0"/> </td> |
| |
| <td> |
| <audio> |
| <source src="suara_/<?php echo $row['nama_suara']; ?>" width="50" height="50" border="0"/></audio></td> |
| <? |
| echo "<td><center><a href=edit_suara_gambar.php?id_tambah=$row[0]>edit</a></center></td>" |
| ?> |
| <? |
| echo "<td><center><a href=delete_suara_gambar.php?id_tambah=$row[0]>delete</a></center></td>" |
| ?> |
| </tr> |
| <? |
| } |
| ?> |
| </table> |
| <? |
| |
| }else{ |
| echo "<font color=red><center><b>Belum Ada Data!!</b><center</font>"; |
| |
| } |
| |
| |
| |
| |
| ?> |