Bagosep

Index Track 2

Jun 2nd, 2021
741
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $no = 1; foreach($track->data as $row)  : ?>
  2.     <tr>
  3.         <td><?= $no ?></td>
  4.         <td><a href="<?= $row->link ?>" target="_blank"><?= $row->title ?></a></td>
  5.         <td><img src="<?= $row->album->cover_small ?>" alt=""></td>
  6.         <td>
  7.         <audio controls>
  8.             <source src="<?= $row->preview ?>" type="audio/mpeg">
  9.             Your browser does not support the audio element.
  10.         </audio>
  11.         </td>
  12.         <td>
  13.             <a href="destroy.php?id=<?= $_GET['id'] ?>&songs=<?= $row->id ?>" class="btn btn-danger"><i class="fas fa-trash"></i> Hapus</a>
  14.         </td>
  15.     </tr>
  16. <?php $no++; endforeach; ?>
RAW Paste Data