php로 엑셀 만들기 입니다.

· 10년 전 · 2502

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

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

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 10년 전 조회 5,140
PHP 10년 전 조회 3,173
PHP 10년 전 조회 2,295
PHP 10년 전 조회 2,439
PHP 10년 전 조회 6,015
PHP 10년 전 조회 2,337
PHP 10년 전 조회 2,797
PHP 10년 전 조회 7,038
PHP 10년 전 조회 3,072
PHP 10년 전 조회 3,160
PHP 10년 전 조회 2,719
MySQL 10년 전 조회 9,043
JavaScript 10년 전 조회 2,977
PHP 10년 전 조회 2,542
PHP 10년 전 조회 2,503
PHP 10년 전 조회 3,126
웹서버 10년 전 조회 3,387
PHP 10년 전 조회 7,301
PHP 10년 전 조회 2,550
PHP 10년 전 조회 2,773
PHP 10년 전 조회 2,704
PHP 10년 전 조회 2,777
PHP 10년 전 조회 2,127
PHP 10년 전 조회 2,507
PHP 10년 전 조회 2,321
PHP 10년 전 조회 2,804
PHP 10년 전 조회 2,916
PHP 10년 전 조회 3,223
PHP 10년 전 조회 2,882
PHP 10년 전 조회 1.3만