신청자목록 엑셀 파일 출력

신청자목록 엑셀 파일 출력

QA

신청자목록 엑셀 파일 출력

본문

기존에 설치했던게 잘 못되어서 재설치를 하고나서

신청자 목록을 엑셀 파일 출력 하는 부분이 오류가 납니다 .

게시판에서 신청까지는 다 되는데

리스트에서 체크박스로 선택한 후 엑셀 파일로 출력이

2014년 이전 파일로만 되고 있어요.

현재 새로 신청한 리스트는 전혀 출력이 되지 않는데요;;

고수님들 빠른 답변 부탁드립니다 ^^;;

항상 얻어가기만 하니 지송할 따름이네요 ㅡㅡ

 

 

[에러메세지]

SELECT * FROM g4_write_test01 

1146 : Table 'ㅁㅁㅁㅁ.g4_write_test01' doesn't exist 

error file : /board/bbs/excel.php 

 

 

 

excel.php​ 입니다.


<?
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=file.xls");
header("Content-Description: PHP4 Generated Data");


include "_common.php";


if($_POST['chk_wr_id']) {
	$in = implode(", ", $_POST['chk_wr_id']);
	$where = "WHERE wr_id IN($in)";
}
?>
<table border="1">
	<tr>
        <th style="background:#ddd;">참가부</th><!--wr_1-->
		<th style="background:#ddd;">부문</th><!--wr_2-->
        <th style="background:#ddd;">악기명</th><!--wr_content-->
		<th style="background:#ddd;">학년</th>
        <th style="background:#ddd;">생년월일</th>
        <th style="background:#ddd;">이름</th>
        <th style="background:#ddd;">학교</th>
        <th style="background:#ddd;">예선 곡명</th>
        <th style="background:#ddd;">예선 작곡가</th>
		<th style="background:#ddd;">본선 곡명</th>
        <th style="background:#ddd;">본선 작곡가</th>
        <th style="background:#ddd;">연락처</th>
        <th style="background:#ddd;">이메일</th>
        <th style="background:#ddd;">주소</th>
        <th style="background:#ddd;">신청일자</th>
	</tr>
<?
$que = sql_query("SELECT * FROM g4_write_".$_POST['bo_table']." ".$where);
while($row = sql_fetch_array($que)) {
?>
	<tr>
        <td><center><?=$row['wr_1']?></center></td>
        <td><center><?=$row['wr_2']?></center></td>
        <td><center><?=$row['wr_content']?></center></td><!--악기명-->
        <td><center><?=$row['wr_3']?></center></td><!--학년-->
        <td><center><?=$row['wr_4']?></center></td><!--생년월일-->
        <td><center><?=$row['wr_name']?></center></td><!--이름-->
        <td><center><?=$row['wr_subject']?></center></td><!--학교-->
        <td><center><?=$row['wr_7']?></center></td><!--예선곡 작곡가-->
        <td><center><?=$row['wr_8']?></center></td><!--예선곡 곡명-->
        <td><center><?=$row['wr_9']?></center></td><!--본선곡 작곡가-->
        <td><center><?=$row['wr_10']?></center></td><!--본선곡 곡명-->
        <td><center><?=$row['wr_5']?></center></td><!--연락처-->
        <td><center><?=$row['wr_email']?></center></td>
        <td><center><?=$row['wr_6']?></center></td><!--주소-->
        <td><center><?=$row['wr_datetime']?></center></td><!--신청일자-->
	</tr>
<?
}
?>
</table>

 

이 질문에 댓글 쓰기 :

답변 3

아래 그림과 같이 파일의 인코딩을 utf-8 로 저장해 보세요.

 

e90d0c690e0c6ff26cb244a0b57f6159_1434349208_3026.jpg
 

 

(참고)

데이터베이스(ㅁㅁㅁㅁ)에 해당 테이블(g4_write_test01)이 있는지 확인해 보세요.

테이블명 앞에(점 앞에) 있는 것이 데이터베이스명 입니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 10
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT