테스트 사이트 - 개발 중인 베타 버전입니다

php로 엑셀 만들기 입니다.

· 9년 전 · 375

<?
$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>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12143
12141
12140
12139
12131
20381
12130
12129
12128
12127
12126
12122
12121
12120
346
12117
12116
12114
345
344
343
12113
12102
12101
12100