Guest User

Untitled

a guest
Jun 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. include "database.php";
  4.  
  5. $x ="SELECT * from counter order by FileName";
  6. $result = mysql_query($x) or die
  7. ("Could not execute query : $x." . mysql_error());
  8.  
  9. echo "<p align=center><b>File Download</b></p>";
  10. echo "<ol>";
  11.  
  12. while ($row=mysql_fetch_array($result))
  13. {
  14. $id = $row["id"];
  15. $FileName = $row["FileName"];
  16. $FileURL = $row["FileURL"];
  17. $Count =$row["Count"];
  18.  
  19.  
  20. echo "<li><a href=download.php?id=$id>$FileName</a></li>";
  21. }
  22. ?>
Add Comment
Please, Sign In to add comment