웹마짱구's 블로그

엑셀 출력

Linux/PHP : 2006/12/26 17:22


<?
include($DOCUMENT_ROOT."/lib/db.inc");
include ($DOCUMENT_ROOT."/lib/func.inc");
include ($DOCUMENT_ROOT."/bin/bbs/class/MysqlClass.php");


$xls_name = date("Ymd")."_goods.xls";
header("Content-type: application/vnd.ms-excel");
header("Content-Type: application/vnd.ms-excel; charset=euc-kr");
header("Content-Disposition: attachment;filename=$xls_name;");      
header( "Content-Description: PHP4 Generated Data" );

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</HEAD>

<BODY topmargin="0" leftmargin="0">

               <table width="370" border="1" cellspacing="0" cellpadding="0">
<?
for($i = 1; $i < 10; $i++)
{
$subject = "aaaaaaa".$i;
$reg_date = date("Y.m.d", $row[register_dt]);
?>
                 <tr>
                   <td width="28" height="20"><div align="center"><img src="images/main_03.gif" width="4" height="4"></div></td>
                   <td width="280" height="20"><a href="bbs_02.html?st=view&id=<?= $row[uid] ?>"><?= $subject ?></a><br>
                     </a></td>
                   <td width="62" height="20"><a href="#">2005.8.20</a></td>
                 </tr>
<? } ?>
</BODY>
</HTML>

top

TAG
Linux/PHP : 2006/12/26 17:22 Trackback. : Comment. : view 984

Trackback Address :: http://jjangu.pe.kr/blog/trackback/122

Write a comment.




: 1 : ... 427 : 428 : 429 : 430 : 431 : 432 : 433 : 434 : 435 : ... 543 :