php 엑셀추출
페이지 정보
본문
header(\"Content-type: application/vnd.ms-excel;\");
header(\"Content-Description: PHP4 Generated Data\");
header(\"Content-Disposition: attachment; filename=customer_ars.xls\");
header(\"Expires: 0\");
header(\"Cache-Control: must-revalidate, post-check=0,pre-check=0\");
header(\"Pragma: public\");
<table>
<thead>
<tr>
<th scope=\"col\" style=\"width:30px;\">No</th>
<th scope=\"col\" style=\"width:120px;\">Date</th>
</tr>
</thead>
<tbody>
<?
while($row = mysql_fetch_array($res)){
?>
<tr>
<td class=\"align-center\"><?=$row['no']?></td>
<td class=\"align-center\"><?=$row['reg_date']?></td>
</tr>
<?
}
?>
</tbody>
</table>
header(\"Content-Description: PHP4 Generated Data\");
header(\"Content-Disposition: attachment; filename=customer_ars.xls\");
header(\"Expires: 0\");
header(\"Cache-Control: must-revalidate, post-check=0,pre-check=0\");
header(\"Pragma: public\");
<table>
<thead>
<tr>
<th scope=\"col\" style=\"width:30px;\">No</th>
<th scope=\"col\" style=\"width:120px;\">Date</th>
</tr>
</thead>
<tbody>
<?
while($row = mysql_fetch_array($res)){
?>
<tr>
<td class=\"align-center\"><?=$row['no']?></td>
<td class=\"align-center\"><?=$row['reg_date']?></td>
</tr>
<?
}
?>
</tbody>
</table>
- 이전글php변수 다 받아오기 20.02.21
- 다음글php 서버푸시 20.02.21
댓글목록
등록된 댓글이 없습니다.