게시판의 회원이쓴 내용 정보를 엑셀파일로 다운받기 어떻게 해야 되나요? 정보
게시판의 회원이쓴 내용 정보를 엑셀파일로 다운받기 어떻게 해야 되나요?본문
지금제가 특정게시판에 회원들이 정보를 입력하면 관리자가 그회원이쓴 정보를 엑셀로 다운을 받으려고합니다.
<?
$code = $_GET["code"];
header("Content-Disposition: attachment; filename=dcms_$wr_1.xls");
// 이부분이 있어야 다운로드 열기 선택 시 오류 발생 안난다.
header("Cache-control: private"); ?>
<style>
td {font-size:12px; color:#5C5B5B;}
</style>
<BODY style="margin:0px;">
<table border="0" cellspacing="0" cellpadding="0" width="700" >
<tr>
<td height=60 align="center" colspan="2">
<strong style="font-size:34px;">졸업생 진로 조사표</strong>
</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>이름</strong>
</td>
<td width="80%"><?=$view[wr_9]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>주소</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>전화번호</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>휴대전화</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>성 별</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>이메일</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>학과</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>학번</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>상담방법</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>방문시간</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>회사구분</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>근무지</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>취업구분</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>전공일치</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>취업경로</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>급여</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
</table>
</BODY>
border_1_xls.php로 연결을시켜 받을려고하는데요!~ 잘안되는데 어떻게해야되지요?
무엇에문제가있나요? 잘안되네요!~~
<?
$code = $_GET["code"];
header("Content-Disposition: attachment; filename=dcms_$wr_1.xls");
// 이부분이 있어야 다운로드 열기 선택 시 오류 발생 안난다.
header("Cache-control: private"); ?>
<style>
td {font-size:12px; color:#5C5B5B;}
</style>
<BODY style="margin:0px;">
<table border="0" cellspacing="0" cellpadding="0" width="700" >
<tr>
<td height=60 align="center" colspan="2">
<strong style="font-size:34px;">졸업생 진로 조사표</strong>
</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>이름</strong>
</td>
<td width="80%"><?=$view[wr_9]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>주소</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>전화번호</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>휴대전화</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>성 별</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>이메일</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>학과</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>학번</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>상담방법</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>방문시간</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>회사구분</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>근무지</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>취업구분</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>전공일치</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>취업경로</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
<tr>
<td height=30 width=20% align="center"><strong>급여</strong></td>
<td width="80%">1</td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7 colspan="2"></td></tr>
</table>
</BODY>
border_1_xls.php로 연결을시켜 받을려고하는데요!~ 잘안되는데 어떻게해야되지요?
무엇에문제가있나요? 잘안되네요!~~
댓글 전체
