2016-07-28 95 views
4

我試圖下載上傳的文件在我的數據庫,但我不能。請參閱下面的代碼。我如何下載上傳的文件?

$ filepath =「upload /".$ filename;

<table class="main_table" border="1"> 
     <tr class="tb_row"> 
      <?php 
       while($row = mysql_fetch_array($select)){ 
      ?> 
     <td class="tb_dt"><?php echo $row['position']?></td> 
     <td class="tb_dt"><?php echo $row['trainings']?></td> 
     <td class="tb_dt"><?php echo $row['tr_date']?></td> 
     <td><a href="download.php?name=<?php echo $row['img_path'];?>"> download </a></td> 
    </tr> 
<?php  }  ?> 
</table> 
+0

使用HTML5下載屬性 – Abbas

+0

可能重複http://stackoverflow.com/questions/20830309/download-file-using-an-ajax-request – Abbas

+0

使用像這樣下載屬性。

回答