묻고답하기

특정 게시판 리스트를 엑셀파일로 출력 확장변수 까지 같이 출력 할려고 하는데
아래처럼 하면 확장변수가 옆으로 안가고 아래로 가요 도와 주세요 -.-
<?php
 $info = array(
 "host"  => "호스트",
    "user"  => "아이디",
    "pass"  => "비번",
    "db"  => "DB명",
 "table"  => "xe_documents",
 "table1"  => "xe_document_extra_vars",
 "module_srl" => "1086",
   );
 $getFields = array("title","nick_name","regdate","ipaddress","user_id",);  //출력원하는 칼럼을 배열로 입력
 $getFields1 = array("value"); 
 header("Content-type: application/vnd.ms-excel");
 header("Content-Disposition: attachment; filename=documents.xls");
 $con = mysql_connect($info[host], $info[user], $info[pass]) || die(mysql_error());
 mysql_query("set names utf8");
 $con_db = mysql_select_db($info[db]) || die(mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=Content-Type content=text/html; charset="utf-8">
<style type="text/css">
.a {
color: #FD4E02;
font-weight: bold;
}
</style>
</head>
<body>



<table width="800" height="215" border="0" cellpadding="0" cellspacing="0"><tr>

<table border="1" cellpadding="0" cellspacing="0">
  <tr>
  <td align="center" valign="middle" class="a">12</td></tr></table>
  
<table border=1>
<tr align=center>
<?php
 $fields = mysql_list_fields("$info[db]", "$info[table]");
 $columns = mysql_num_fields($fields);
 
 for( $i=0 ; $i<$columns ; $i++ )
 {
  $field[$i]=mysql_field_name($fields, $i);
  if( in_array($field[$i], $getFields) ) echo "<th>".$field[$i]."</th>";
 }
?>
</tr>
<?php
 $result = mysql_query("select * from $info[table] where module_srl = $info[module_srl]");
 while( $data = mysql_fetch_assoc($result) )
 {
  echo"<tr>";
  foreach( $data as $key => $val )
  {
   if( in_array($key, $getFields) ) echo "<th>".htmlspecialchars($val)."</th>";
  }
  echo"</tr>";
 }
?>
</table>




<td>
</td>
    <td>
    
    
    
<table border=1>
<tr align=center>
  <?php
 $fields = mysql_list_fields("$info[db]", "$info[table1]");
 $columns = mysql_num_fields($fields);
 
 for( $i=0 ; $i<$columns ; $i++ )
 {
  $field[$i]=mysql_field_name($fields, $i);
  if( in_array($field[$i], $getFields1) ) echo "<th>".$field[$i]."</th>";
 }
?>

<?php
 $result = mysql_query("select * from $info[table1] where module_srl = $info[module_srl]");
 while( $data = mysql_fetch_assoc($result) )
 {
  echo"<tr>";
  foreach( $data as $key => $val )
  {
   if( in_array($key, $getFields1) ) echo "<th>".htmlspecialchars($val)."</th>";
  }
  echo"</tr>";
 }
?>
</table>
    
    
    </td>
</tr>
</table>



</body>
</html>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Jacobox xe 설치 후 경로 변경 관련하어 질문합니다 [3] 2014.06.06 by 키스투엑스이
han211 DB에서 xe_menu 에 '비우기'를 눌러버렸습니다. [1] 2014.06.06 by 키스투엑스이
청소년출입가능지역의족장 모바일 버전 관련 질문(중요) [2] file 2014.06.06 by 키스투엑스이
늘푸른나무2 XE1.7.5.1에서 게시글 첨부파일이 잘 올라가나요? [2] 2014.06.06 by 늘푸른나무2
이런이런88 바로 밑에 글 첨부 파일 올려 드립니다! [8] file 2014.06.06 by 이런이런88
청소년출입가능지역의족장 익스플로러와 크롬 글꼴차이 file  
coko Install에 대하여 [2] file 2014.06.06 by 퍼니엑스이
하하하3080 확장변수 이용하여 특정게시물만 포인트를 차감하게 하거나 차감안되게 하는 방법?(사례합니다.ㅠ 도와주세요)  
강한_전사 설치 질문입니다. [2] 2014.06.06 by 강한_전사
리키한 애드온 To SNS 관련 문의 드립니다. [1] 2014.06.06 by 소시덕분에힘받아요
php개발자 컴포넌트 poll 과 유사한 컴포넌트를 만들고 싶은 초보입니다. file  
puppy99 소시랑 메모에서 new를 없앴더니 공간이 생겼어요 [5] file 2014.06.06 by JS0913
pelican 모바일 댓글 작성시, 홈페이지의 형식이 잘못되었습니다 [2] file 2014.06.06 by pelican
이런이런88 최신글 상단부분 타이틀 닉네임등 삭제 하는법좀 알려주세요! [1] file 2014.06.06 by JS0913
키스투엑스이 레이아웃 문의.. [4] 2014.06.06 by 키스투엑스이
콩까기 스케치북게시판에서 비밀글로 작성시 제목에도 '비밀글입니다' 로 뜨게하는방법 있을까요? [2] 2014.06.05 by 콩까기
i지니i 운영자님 오류납니다. [3] 2014.06.05 by i지니i
qwqwwewe 메뉴판 질문입니다. [2] 2014.06.05 by qwqwwewe
뮤르시엘라고 코인 슬라이더 위젯을 한 페이지에 두개 쓰면 안움직여요  
IOZ 공홈에서 쓰던 지식인 스킨은 끝내 배포 안되는건가요?