php 엑셀추출
페이지 정보
작성자 미친새 작성일 20-02-21 10:36 조회 18,282 댓글 0본문
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>
댓글목록 0
등록된 댓글이 없습니다.