php 엑셀 다운로드
페이지 정보
본문
header( \"Content-type: application/vnd.ms-excel;charset=UTF-8\");
header( \"Expires: 0\" );
header( \"Cache-Control: must-revalidate, post-check=0,pre-check=0\" );
header( \"Pragma: public\" );
header( \"Content-Disposition: attachment; filename=name_\".date('Ymd').\".xls\" );
echo \"
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=UTF-8'>
<table border=1>
<tr>
<td>1번컬럼</td><td>2번컬럼</td><td>3번컬럼</td><td>4번컬럼</td>
</tr>
\";
echo \"
<tr>
<td>여기는 1번자리</td>
<td>여기는 2번자리</td>
<td>'02-0000-0000'</td>
<td>'010-0000-0000'</td>
</tr>\";
echo \"
</table>\";
die;
header( \"Expires: 0\" );
header( \"Cache-Control: must-revalidate, post-check=0,pre-check=0\" );
header( \"Pragma: public\" );
header( \"Content-Disposition: attachment; filename=name_\".date('Ymd').\".xls\" );
echo \"
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=UTF-8'>
<table border=1>
<tr>
<td>1번컬럼</td><td>2번컬럼</td><td>3번컬럼</td><td>4번컬럼</td>
</tr>
\";
echo \"
<tr>
<td>여기는 1번자리</td>
<td>여기는 2번자리</td>
<td>'02-0000-0000'</td>
<td>'010-0000-0000'</td>
</tr>\";
echo \"
</table>\";
die;
- 이전글mysql 달력 쿼리 20.02.21
- 다음글mysql view 확인 방법 20.02.21
댓글목록
등록된 댓글이 없습니다.