2016-07-28 3 views
4

내 데이터베이스에 업로드 된 파일을 다운로드하려하고 있지만 위선적입니다. 아래 코드를 참조하십시오.업로드 된 파일을 어떻게 다운로드 할 수 있습니까?

$ filepath = "업로드 /". 파일 이름;

<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

사용할 수 있음 다운로드 속성.

답변

관련 문제