엑셀저장 채택완료
아래코드 좀 봐주세요
이대로 하면 아래처럼 글이 깨지고 엑셀형태로 출력이 안되요
| ?깅챸 | ?곕졊 | ?뚯궗紐?/th> | ?깅퀎 | 李멸???/th> | |
| 1 | 3 | 23 | 8 | 1 | |
|
10 26 7 1 5 3 70 4 3 1 1 17 1 0 5 1 70 25 4 5 2 30 10 11 32 7 5 51 16 8 14 3 12 6 72 30 ??/td> 12 3 70 14 1 3 0 13 1
|
|||||
$sExcelFileName = "bogo" . date("Y") . "-" . date("m") . "-" . date("d") . ".xls"; header( "Content-type: application/vnd.ms-excel" ); header( "Content-type: application/vnd.ms-excel; charset=euc-k"); header( "Content-Disposition: attachment; filename = '$sExcelFileName'" ); header( "Content-Description: PHP4 Generated Data" );
include_once('../../../common.php');
?>
| 성명 | 연령 | 회사명 | 성별 | 참관일 |
|---|---|---|---|---|
| =$row['wr_1'];?> | =$row['wr_2'];?> | =$row['wr_3'];?> | =$row['wr_4'];?> | =$row['wr_5'];?> |
뭐가 문제일까요?고생 엄청하네요
답변 4개
$sExcelFileName = "bogo" . date("Y") . "-" . date("m") . "-" . date("d") . ".xls"; header( "Content-type: application/vnd.ms-excel" ); header( "Content-type: application/vnd.ms-excel; charset=euc-kr"); header( "Content-Disposition: attachment; filename = '$sExcelFileName'" ); header( "Content-Description: PHP4 Generated Data" );
include_once('../../../common.php'); ---> 이라인을
?>
include_once('../../../common.php'); $sExcelFileName = "bogo" . date("Y") . "-" . date("m") . "-" . date("d") . ".xls"; header( "Content-type: application/vnd.ms-excel" ); header( "Content-type: application/vnd.ms-excel; charset=euc-kr"); header( "Content-Disposition: attachment; filename = '$sExcelFileName'" ); header( "Content-Description: PHP4 Generated Data" ); ?>
이렇게 먼저 해보세요
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인