php로 엑셀 만들기 입니다.

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

<?
$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-11-28 조회 448
15-11-28 조회 496
15-11-27 조회 584
15-11-27 조회 404
15-11-27 조회 446
15-11-26 조회 580
15-11-26 조회 1,135
15-11-25 조회 515
15-11-25 조회 472
15-11-25 조회 568
15-11-25 조회 472
15-11-25 조회 710
15-11-24 조회 1,528
15-11-23 조회 595
15-11-23 조회 483
15-11-23 조회 464
15-11-21 조회 522
15-11-21 조회 475
15-11-21 조회 408
15-11-20 조회 422
15-11-20 조회 368
15-11-20 조회 428
15-11-18 조회 452
15-11-18 조회 564
15-11-18 조회 466