테스트 사이트 - 개발 중인 베타 버전입니다

스킨 오류나는거 쉽게 설명해주실분 ㅠㅠ 채택완료

강냉이 11년 전 조회 6,457
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=98837&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%BC%EC%A0%95&page=3" target="_blank">http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=98837&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%BC%EC%A0%95&page=3" target="_blank">http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=98837&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%BC%EC%A0%95&page=3

위 스킨을 적용했습니다

오류가 나는데 mysql 앞에 @붙이면 오류는 나지 않는데 값이 안나옵니다

적용사이트는 http://www.chooya.com/paul" target="_blank">http://www.chooya.com/paul" target="_blank">http://www.chooya.com/paul 이구요 41번째줄 오류라고 나오는데

<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
$bo_table2 = 'g4_write_'.$bo_table;
// 이번달 첫날 구하기
$start = date("Ym").'00';
$end = date("Ym").'33';
$sql = "SELECT * FROM $bo_table2 where wr_link1 > $start and wr_link1 < $end order by wr_link1";
$query = mysql_query($sql);
// $row = mysql_fetch_array($query);

?>
<link href="/style.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="calimg/cal_back.gif" style="background-repeat:repeat-y;">
<tr><Td colspan="4" align="center" style="padding-top:5px; padding-bottom:2px;">
<table width="95%" height="10" border="0" cellpadding="0" cellspacing="0"  background="calimg/dote.gif">
  <tr>
    <td></td>
  </tr>
</table>

</Td></tr>
  <tr>
    <td style="padding:0px 5px;"><table width="100%">
        <Tr>
          <td style="padding-left:56px; background-repeat:no-repeat; background-position:left;" colspan="4" background="calimg/cal_daycounter.gif" ><font size="+1">
            <?
 $sql2 = mysql_query("SELECT SQL_CALC_FOUND_ROWS * FROM $bo_table2 where wr_link1 > $start and wr_link1 < $end");
 $result = mysql_query("SELECT FOUND_ROWS()");
 $total = mysql_fetch_row($result);
 echo $total[0];

?>
            </font> </td>
        </Tr>
      </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="99%">
        <?
 while($row = mysql_fetch_array($query)){
  $datee=$row[wr_link1];
   ?>
        <tr>
          <td style="padding-left:3px;"><font style='font-family:돋움; font-size:8pt;'>[
            <? // echo substr($datee,0,4)."년". ?>
            <? echo sprintf("%2d",substr($datee,4,2))."월".sprintf("%2d",substr($datee,6,2))."일"; ?> ]</font></td>
          <td><font style='font-family:돋움; font-size:8pt; color:#339933;'><b>
           <a href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$row[wr_id]?>" target="_parent"> <?=$row[wr_subject];?>
     </a>
            </b></font></td>
          <td style="padding-right:3px;"><font style='font-family:돋움; font-size:8pt;'>~<? echo sprintf("%2d",substr($datee,6,2))."일";?></font></td>
        </tr>
  <tr><Td></Td></tr>
        <?  } ?>
      </table></td>
  </tr>
  <tr>
    <td colspan="4"><img src="calimg/cal_down.gif" /></td>
  </tr>
</table>
​​이부분입니다

꼭필요한 스킨인데 안되네여 ㅠㅠ 고수님들 도와주세요​

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

while(@$row = mysql_fetch_array($query)){


이렇게 하시면 된다고 아까 설명 적어드렸잖아요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

강냉이
11년 전
제가 잘못이해했어여 ㅠ_ㅠ
말씀하신데로 바꾸니깐 오류가 안나네여
근데 오류는 안나는데 값이 안나와여 게시판 3개나 있는데 ㅠ_ㅠ
우엉;; 산넘어 산이네여

댓글을 작성하려면 로그인이 필요합니다.

11년 전

값이 안나오는 것은 조회할 데이터가 없는 것이에요.

 

쿼리문을 다시 보세요.

 

@는 쿼리에 에러가 있을 경우 에러를 화면에 출력하지 않게 하는 것이고요.

 

오류가 발생하는 것인지  데이터가 출력이 안되는 것인지..

 

부터 판단을 하셔야 해요.

 

데이터가 출력되지 않은 것은 오류가 아니고 정상적인 실행이에요.

 

오류가 나온다면 분명 에러 문구가 화면에 나올거에요.

 

error_reporting(E_ALL);
ini_set("display_errors", 1); 

이것 넣으시면 에러 출력하게 되요 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

강냉이
11년 전
일정표에 입력을 했는데도 데이터가 표시가 안됩니다.
wr_link1 <<< 이값을 가져오는거 같아서
wr_1 <<< 여기에 날짜가 표시되길래 바꿔도 봤는데
도무지 값이 안나옵니다;;

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인