php로 엑셀 만들기 입니다.

· 2015-11-25 (수) 15:28:01 · 571

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

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

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
15-12-01 조회 434
15-12-01 조회 449
15-11-30 조회 653
15-11-30 조회 496
15-11-30 조회 455
15-11-29 조회 450
15-11-29 조회 481
15-11-29 조회 491
15-11-28 조회 469
15-11-28 조회 450
15-11-28 조회 498
15-11-27 조회 587
15-11-27 조회 408
15-11-27 조회 449
15-11-25 조회 475
15-11-25 조회 572
15-11-25 조회 476
15-11-23 조회 599
15-11-23 조회 487
15-11-23 조회 469
15-11-21 조회 526
15-11-21 조회 479
15-11-21 조회 410
15-11-20 조회 426
15-11-20 조회 373