php로 엑셀파일 만들기 정보
PHP php로 엑셀파일 만들기본문
<?
$today = date("Y-m-d");
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=". $today. ".xls");
header( "Content-Description: PHP4 Generated Data" );
?>
$today = date("Y-m-d");
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=". $today. ".xls");
header( "Content-Description: PHP4 Generated Data" );
?>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<html>
<head>
<title></title>
</head>
<body>
<table border=1>
<tr>
<td>번호</td>
<td>번호+1</td>
</tr>
<? for($i=0; $i<10; $i++){ ?>
<tr>
<td><?= $i ?></td>
<td><?=$i+1 ?></td>
</tr>
<? } ?>
<tr>
</tr>
</table>
</body>
</html>
<head>
<title></title>
</head>
<body>
<table border=1>
<tr>
<td>번호</td>
<td>번호+1</td>
</tr>
<? for($i=0; $i<10; $i++){ ?>
<tr>
<td><?= $i ?></td>
<td><?=$i+1 ?></td>
</tr>
<? } ?>
<tr>
</tr>
</table>
</body>
</html>
[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]
추천
0
0
댓글 1개

감사합니다 ^^