g4_board_file 관련질문드립니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

g4_board_file 관련질문드립니다. 정보

g4_board_file 관련질문드립니다.

첨부파일

pot.php (7.7K) 3회 다운로드 2007-04-28 09:19:40

본문

디비에서 파일을 불러오려고 하는데요.
이상하게 소스만 나와버리네요.. 어떻게 해야하나요?
 
원본파일에서 왼쪽을 클릭하면 오른쪽에 이미지가 나오도록 했는데 이미지는 나오지 않고 이미지의 이름만 출력이 되어버리네요..
 
뭐가 잘못된건가요? 도저히 잘 모르겠네요.
 
<원본파일>

<
<html>
<title>로체디자인</title>
<link href="./portfolio.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #0C7DF1}
.style2 {color: #FFFFFF}
-->
</style>
 

<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td colspan="2" align="center" valign="middle"><table width="938" height="652" border="0" cellpadding="0" cellspacing="0" bgcolor="0c1723">
      <tr>
        <td width="216" valign="top" class="line_all">
<!-- 내용1 왼쪽 메뉴 -->
     
<table width="167"  border="0" cellspacing="0" cellpadding="0" style="margin-left:26px; margin-right:24px; margin-top:22px;">
    <tr>
    <td><!=== 제목 타이틀 이미지 ===><img src='http://www.lhotse-design.co.kr/bbs/image/l_menu1.gif'><!=== 제목 타이틀 이미지 ===></td>
  </tr>
    <!============= 페이지 ===============>
  <tr>
    <td height="20" align="right" valign="top">
 <table  border="0" cellspacing="0" cellpadding="0" style="margin-right:2px; margin-top:6px;" width='50'>
        <tr>
<td width='180' align='center'><font color='#D30707'><strong>1</strong></font>
        </tr>
  <tr>
    <td><img src="image/l_menu2_01.gif" width="167" height="24" style="margin-bottom:16px;"></td>
  </tr>
      </table></td>
  </tr>
   <!============= 페이지 ===============>
  <tr>
    <td align="center" valign="top" bgcolor="#101F2C"><table width="161"  border="0" cellpadding="0" cellspacing="0" style="margin-top:4px;" height="100%">
  <tr><td height='20' valign='middle' bgcolor='#283642' class='style1'>
<!-- 왼쪽 메뉴들어가는곳-->
<?
     include("./dbconfig.php");
  $database = mysql_connect($mysql_host, $mysql_user, $mysql_password);
  mysql_select_db($mysql_db, $database);
  $query = mysql_query("SELECT * from g4_write_portfolio where ca_name = 'medical' "); 
  while( $row=mysql_fetch_array($query)) {
   $wr_id = $row[wr_id];
   echo " <A HREF='./pot.php?select_wr_id=$wr_id'>$row[wr_subject]</A> <br>";

  }
 ?>
 
  </td>
  </tr>
<tr><td><a href='list.asp?ch1=2&CurrentMenu=2'><img src='image/l_menu2_02.gif' width='167' height='22' border='0'></a></td></tr><tr><td><a href='list.asp?ch1=4&CurrentMenu=4'><img src='image/l_menu2_03.gif' width='167' height='22' border='0'></a></td></tr><tr><td><a href='list.asp?ch1=3&CurrentMenu=3'><img src='image/l_menu2_04.gif' width='167' height='22' border='0'></a></td></tr><tr><td><a href='list.asp?ch1=5&CurrentMenu=5'><img src='image/l_menu2_05.gif' width='167' height='22' border='0'></a></td></tr>
</table>
                    <!-- //내용1 왼쪽 메뉴 -->
  </td>
        <td valign="top" class="line_brt"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="61" align="right" valign="top">
                    <!-- 내용2 닫기버튼 -->
     <table width="24"  border="0" cellpadding="0" cellspacing="0" style="margin-right:20px; margin-top:20px;">
                        <tr>
                          <td width="14"><a href="#"><img src="http://lhotse-design.co.kr/bbs/image/_.gif" width="10" height="10" border="0"></a></td>
                          <td><a href="JavaScript:window.close();" target="_self"><img src="http://lhotse-design.co.kr/bbs/image/x.gif" width="10" height="10" border="0"></a></td>
                        </tr>
                    </table>
                    <!-- //내용2 닫기버튼 -->     </td>
                  </tr>
                  <tr>
                    <td height="477" align="center">
                    <!-- 내용3 이미지 -->
                    <table width="697" height="477" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center" valign="middle"><table width="696" height="476" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" valign="middle">
       <?
       $query = mysql_query("SELECT * from g4_board_file where wr_id = '$select_wr_id' "); 
         while( $row1=mysql_fetch_array($query)) {
          
          echo "$row1[bf_file]<br>";
         }
       ?>
</td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>                   
                    <!-- //내용3 이미지 -->
     </td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <!--td height="113" align="right" valign="top" background="ppimg/copyright.gif"-->
              <td height="113" align="right" valign="top">
                    <!-- 내용4 이미지 넘어가는 버튼 -->
           <table width="320" height="20"  border="0" cellpadding="0" cellspacing="0" style="margin-right:12px; margin-top:10px;">
                  <tr>
                    <td><img src="ppimg/other_p.gif" width="106" height="17"></td>
                    <td bgcolor="#1A2835"><table width="80%"  border="0" cellspacing="0" cellpadding="0" style="margin-left:6px; margin-right:6px;">
                        <tr align="center">
        <td width='40'><a href='?ch1=1&ch2=115&big_img=1458' target='_self'><img src='ppimg/1.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1457' target='_self'><img src='ppimg/2.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1456' target='_self'><img src='ppimg/3.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1455' target='_self'><img src='ppimg/4.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1454' target='_self'><img src='ppimg/5.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1453' target='_self'><img src='ppimg/6.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1452' target='_self'><img src='ppimg/7.gif' width='10' height='12' border='0'></a></td><td width='40'><a href='?ch1=1&ch2=115&big_img=1451' target='_self'><img src='ppimg/8.gif' width='10' height='12' border='0'></a></td>
                       
                        </tr>
                    </table></td>
                  </tr>
              </table>
                <!-- //내용4 이미지 넘어가는 버튼 -->     </td>
            </tr>
        </table></td>
      </tr>
    </table> </td>
  </tr>
</table>
</body>
</html>
 
위에서 왼쪽메뉴를 클릭하면 오른쪽에 이미지 이름만 나와버립니다. 어떻게 해결을 해야할지 잘 모르겠어서요.. 부탁드립니다.
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로