Guest User

Untitled

a guest
Jun 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. $sql = "SELECT FROM videos ORDER BY video_id ASC LIMIT 2,1;";
  4. $result = mysqli_query($con, $sql);
  5. $resultCheck = mysqli_num_rows($result);
  6.  
  7. if (mysqli_num_rows($result) > 0) {
  8. while ($row = mysqli_fetch_assoc($result)) { ?>
  9. <li class="jp-playlist-current"><div><a href="javascript:;" class="jp-
  10. playlist-item-remove" style="display: none;">×</a><a href="javascript:;"
  11. class="jp-playlist-item jp-playlist-current" tabindex="0">1. <?php echo
  12. $row['video_name']; ?> <span class="jp-artist">by <?php echo
  13. $row['video_artist']; ?></span></a></div></li>
  14.  
  15. <?php }
  16.  
  17. } else {
  18. echo "there are no songs!";
  19. }
  20.  
  21. ?>
Add Comment
Please, Sign In to add comment