엑셀파일 만들기 정보
엑셀파일 만들기본문
<?
$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>
오늘 찾다가 유용한것 같아 올려봅니다
추천
0
0
댓글 3개
감사합니다.
유익한 소스이네요.
보기에도 이해하기 쉽게 정리되었네요.
좋은 정보 알려주셔서 감사드립니다.
보기에도 이해하기 쉽게 정리되었네요.
좋은 정보 알려주셔서 감사드립니다.
감사합니다.