묻고답하기

게시판에 있는 내용과 확장변수에 있는 것들을 같이 불러오고 싶은데

확장변수가 옆으로 안가고 밑으로 가네요;;;; 어떻게방법이 없을까요 ㅠㅠ제목 없음.PNG

소스는 이렇습니다.

<?php
 $info = array(
 "host"  => "localhost",
    "user"  => "root",
    "pass"  => "apmsetup",
    "db"  => "dd",
    "table"  => "xe_documents",
  "table1" => "xe_document_extra_vars",
  "module_srl" => "1088",
   );
 $getFields = array("title","nick_name","regdate","value");
 $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">
</head>
<body>
<table border=1>
<tr align=center>
<?php
 $fields = mysql_list_fields("$info[db]", "$info[table]");
 $fields1 = mysql_list_fields("$info[db]", "$info[table1]");

 $columns = mysql_num_fields($fields);
 $columns1 = mysql_num_fields($fields1);
 
 for( $i=0 ; $i<$columns ; $i++ )
 {
  $field[$i]=mysql_field_name($fields, $i);
  if( in_array($field[$i], $getFields) ) echo "<th>".$field[$i]."</th>";
 }
for ( $i=0; $i<$columns1; $i++) {
  $field1[$i]=mysql_field_name($fields1, $i);
  /*echo "<th>".$field[$i]. "</th>";*/
}
?>
<tr>
<td>제목</td>
<td>이름</td>
<td>등록일</td>
<td>아파트명</td>
<td>장비TID</td>
<td>장애담당</td>
<td>담당자연락처</td>
<td>장비점검 요청일시</td>
<td>장애접수 건수</td>
<td>장애내역</td>
<td>비고</td>
<td>점검자(운용)</td>
<td>점검일시(운용)</td>
<td>점검자연락처(운용)</td>
<td>비고</td>
<td>점검결과(운용)</td>
<td>완료여부</td>
<td>분류</td>
</tr>
<?php
$result = mysql_query("select * from $info[table] as A, $info[table1] as B where A.module_srl=B.module_srl and A.document_srl=B.document_srl and A.module_srl='1088' and B.var_idx order by A.document_srl, regdate desc");
 $ctmp = 1;
 echo"<tr>";

 while( $data = mysql_fetch_assoc($result) )
 {

  foreach( $data as $key => $val )
  {
   if( in_array($key, $getFields) ) echo "<td>".htmlspecialchars($val)."</td>";
 }

echo "</tr>";
 }

 

?>


</table>
</body>
</html>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
이규암 위젯 rss 리더기요;;  
이희태242 레이아웃 편집에 관한 질문 드려요!!! [7] 2007.11.15 by 이희태242
은진아빠 레이아웃 스킨에서 옵션에 따라 다른 파일을 읽어오게 하려는데..  
kanasii xe에서 환율이나 날씨정보 출력하기... 질문 입니다. ^^:  
까 망 사이트 접속시 제로보드xe로.. [4] 2007.11.16 by 까 망
황정례 [HTML] 아이프레임스크롤문제 [2] 2007.11.16 by 황정례
김경해 뉴스티커 만들기  
무비클립 게시판 전체 사이즈 줄이는 방법좀 알려주세요 [2] 2007.11.16 by 지나가다
새벽잠 왕초보가 선배님들에 도움을 기다립니다!!!!  
뮤랜 플래쉬UI getURL삽입문제.. [1] 2007.11.16 by williams
mino 플래시 사이트에서 팝업창 만드는법 [1] 2007.11.16 by williams
주인규 첨부 이미지파일의 이름이 깨집니다. [1] file 2007.11.16 by 조창훈381
타락사 외부페이지 삭제는 안되나요 [1] 2007.11.16 by 우갱™
test맨 레이아웃은 어디에 저장 되나요 [2] 2007.11.16 by test맨
안치홍320 최근게시물과 최근이미지의 제목을 이미지로 바꿀수는 없나요? [1] 2007.11.16 by 소마세월
smico 영문버전과 한글버전을 각각 별도로 동시에 동일한 서버하에서 별도로 운영할수 없습니까? [7] 2007.11.16 by 백성찬
날아다니는 다리미 닉네임 길이를 줄이고 싶습니다.  
scooby 파일첨부가 안되요..... 도와주세요!!! [2] 2007.11.16 by 나무그림자
lipome 검색하면 나타나게하는 방법좀 부탁드림니다 [1] 2007.11.16 by 허브향기1
준혁 편법이라도 좀 알려주세요.. [2] file 2007.11.16 by 준혁