묻고답하기

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

확장변수가 옆으로 안가고 밑으로 가네요;;;; 어떻게방법이 없을까요 ㅠㅠ제목 없음.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 남기남
YUMMM 글읽기 권한이 없을때 이동하는 페이지 [1] 2009.12.06 by nikke
vltmapzjf 로그인이 안되서 cache 폴더 삭제를 했더니 메인화면의 메뉴가 사라졌습니다..급해요..ㅜㅠ [1] 2009.12.06 by Gekkou
동일아빠 1.2.4에서 1.3.1.1로 업그래이드후 메인페이지 안보임 [3] 2009.12.06 by 하늘03
주사위내기 /?module=admin&act=dispAdminConfig 접속 불가능(재업로드) [1] 2009.12.06 by 하늘03
미누7 빈 레이아웃 구할수 있을까요?ㅠㅠ (포인트드림)ㅠ [1] 2009.12.07 by Gekkou
실속제로 백성찬님 홈페이지도 플래시가 팝업창을 가리는것 같네요. [2] 2009.12.07 by 실속제로
허친남 등록 안됨 [1] file 2009.12.07 by 하늘03
미누7 프레임설정 (배경음악 쥬크박스용) 하는 방법문의ㅠ  
예님 1.3.1.1 업뎃 후 작동 오류 [1] 2009.12.07 by 백성찬
Akzin ftp에서 모듈폴더에서 지식인폴더가 삭제가 안 됩니다. [1] 2009.12.07 by 백성찬
햇병아리 시작모듈 설치가 안됩니다 [1] 2009.12.07 by 백성찬
bbogle XE최신업데이트 후 사진이 보이질 않습니다. [1] 2009.12.07 by 백성찬
불패의초인 <td width="287" [1] 2009.12.07
demun xe 1.3.1.1 버젼을 설치하면 모율.에드온 어떤걸 설치해야하나요? [2] 2009.12.07 by 울뜨라
스땐 플래시 본문 삽입 크기 좀 봐주세요 file  
사슴골 admin로그인후 레이아웃화면이 깨질때 깨지지 않게하려면?  
실속제로 백성찬님 도와주세요. 플래시가 로그인창 먹는것 해결이 안되나요?  
skfmeldps 페이지에서 위젯추가후 스타일적용을 하려고 하면 접근할 수 없다고 나옵니다.  
PLASTIC SYNDROME 파이어폭스 여백문제.. [1] file 2009.12.07 by PLASTIC SYNDROME
James 009 카페 회원등록후 명단에서 사라지는 현상.. [1] 2009.12.07 by 투도리