2026, 새로운 도약을 시작합니다.

게시글 미리보기 목록이 안보입니다.

어디를 봐야 수정이 가능한가요?

<table width="330" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="330" height="57" valign="bottom"><div align="center">
                    <p><br>
                      <br>
                      <img src="022.jpg" width="317" height="33" border="0" usemap="#Map7" onfocus='this.blur()'>
                    </p>
                  </div></td>
              </tr>
              <tr>
                <td><table width="95%" border="0" cellspacing="0" cellpadding="0" align="right" >
                    <?

 include "./board/db_con.php";

 function cut_str($msg, $cut_size)

 {

   $k = strlen($msg);

   $title = $msg;

   $sub = stripslashes($title);

   $max = $cut_size; // 글을 자를 길이입니다..^^*

   $count = strlen($sub);

   $reply ="";

   if($count >= $max)

   {

    for ($pos=$max;$pos>0 && ord($sub[$pos-1])>=127;$pos--);

    if (($max-$pos)%2 == 0)

     $sub = substr($sub, 0, $max);

    else

     $sub = substr($sub, 0, $max+1);

    $sub = $sub."...";

   }

   else

    $sub = "$sub";

   $msg = $sub;

   return $msg;

 }

// $data_choi_count = mysql_num_rows(mysql_query("select * from stm_choi where notice = '1' order by no desc limit 1", $connect))

//   or die(mysql_error());

  $result_choi = mysql_query("select * from stm_choi where notice = '1' order by no desc limit 3", $connect)

   or die(mysql_error());

 $data_choi_count = mysql_num_rows($result_choi);

  $result_on_line = mysql_query("select * from stm_on_line order by no desc limit 3", $connect)

   or die(mysql_error());

// $data_on_line_count = mysql_num_rows(mysql_query("select * from stm_choi where notice = '1' order by no desc limit 1", $connect))

//   or die(mysql_error());

 $data_on_line_count = $data_choi_count;

 mysql_close();

?>
                    <?

 while( $data_choi_count-- )

 {

?>
                
                    <tr >
                      <td width="50"  align="right"><img src="dot.gif" width="8" height="9"></td>
                      <td width="282" height="18"  align="left"> <div align="left">
                          <font color="#FFFFFF">
                    
                    
                 
                          <? 

   $data_choi = mysql_fetch_array($result_choi);

   $ymd = date("Y/m/d",$data_choi[date]);

   $data_choi[title] = cut_str($data_choi[title],25);

   echo "&nbsp;<font style='font-size:9pt;''font-color:9f9f9f;><a href=./board/choi/detail.php?no=$data_choi[no]  onfocus='this.blur()' >$data_choi[title]</a>";

?>
                          </font><font color="#FFFFFF" style="font-size: 8pt; color: #666666;" >
                          &nbsp;
                          <? echo "$ymd"; ?>
                          </font><font color="#FFFFFF"> &nbsp;&nbsp; </font></div></td>
                    </tr>
                    <?

}

?>
                  </table></td>
              </tr>
            </table>

답변 1개

미리보기 목록이면 게시판관리에서 목록보기 체크하신건가요?

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

답변에 대한 댓글 1개

어느 페이지에서 하는건가요?

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

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

로그인
🐛 버그신고