묻고답하기

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

확장변수가 옆으로 안가고 밑으로 가네요;;;; 어떻게방법이 없을까요 ㅠㅠ제목 없음.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 남기남
멍티 게시판 페이지 글쓰기가 안되네요..  
foever_89 1.5.4번전에서 메뉴 관리에 관해서 질문 드립니다.  
제이슨5525 도메인 변경 후 메뉴 사용 불가 [2] 2014.07.18 by 제이슨5525
멘탈가루루루루몬 스티커삽입애드온 출력위치 조정 좀 해 주실분을 찾습니다,,  
sspro xe폴더이름을 다른걸로 변경하고싶은데 [6] 2014.07.18 by 위드앱1
단미호 파일첨부에 궁금한 것이 있습니다. [2] 2014.07.18 by 단미호
akdjdkl;wl xe 추가설치 [6] 2014.07.18 by akdjdkl;wl
유묭커뮤늬2 애드센스 뜨는지 확인 부탁드려도 될까요 [5] 2014.07.18 by 몽실아빠
제이슨5525 권한 =-> 회원가입 이동 tip에서 글꼴 깨짐 문제 [1] 2014.07.18 by 제이슨5525
걷고있는기분ER Parse error [2] 2014.07.18 by 걷고있는기분ER
geogeo123 궁금한것이 있는데요.. 깃허브에서 누군가가 코드를 일부로 망쳐두면 어떻게 하죠? [2] 2014.07.18 by 퍼니엑스이
김엿 삭제된 댓글을 볼 수 있는 방법은 없나요? [2] 2014.07.18 by 김엿
앱하우 다국어 지원에 대한 링크 [1] 2014.07.18 by sejin7940
장뚱이 홈피주소에서 꼭 xe가 붙어야 접속이 되는데요. [3] file 2014.07.18 by 최윤한
멍티 문서페이지 수정이 안되네요.ㅠㅠ file  
rtyyhh 관리자 페이지 접속불가 [2] 2014.07.17 by rtyyhh
빼꼼2 xe 관리자 페이지...ㅠ [3] 2014.07.17 by sejin7940
위드앱1 제작의뢰댓글, 제작지원 글쓰기가 안되네요~ [2] 2014.07.17 by 위드앱1
유묭커뮤늬2 특정 페이지에서 애드센스가 안나옵니다. [4] file 2014.07.17 by KrteamENT
포동이 캐시 및 썸네일 삭제문의 [2] 2014.07.17 by Kenta