php로 엑셀 만들기 입니다.

· 10년 전 · 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>

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

팁게시판

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

+
제목 글쓴이 날짜 조회
10년 전 조회 265
10년 전 조회 269
10년 전 조회 255
10년 전 조회 253
10년 전 조회 288
10년 전 조회 371
10년 전 조회 210
10년 전 조회 235
10년 전 조회 361
10년 전 조회 909
10년 전 조회 308
10년 전 조회 272
10년 전 조회 376
10년 전 조회 272
10년 전 조회 506
10년 전 조회 1,320
10년 전 조회 374
10년 전 조회 262
10년 전 조회 269
10년 전 조회 312
10년 전 조회 296
10년 전 조회 224
10년 전 조회 228
10년 전 조회 188
10년 전 조회 239
🐛 버그신고