힐링아무

최근게시글에서 코멘트용~

· 20년 전 · 648
최근게시글에 코멘트부분도 나와야하는데... 기존꺼 수정한거라 안되거든요.
http://ajisarang.net 보시면 코멘트부분은 찍히지 않거든요.
아래소스로 하면 당근 그렇겠지만용. ^^ 아래꺼는 그냥 그누보드로 이름만 바꿔준거거든요. 필드랑...
소스를 어떻게 고치면 좋을까요?


function notice_listing($limit,$text_limit=25){
global $Host,$DBUser,$DBUser_Pass,$Database,$Notice_Table;
$DB_Connect= mysql_connect("$Host","$DBUser","$DBUser_Pass") || die("데이터베이스 연결에 실패하였습니다.");
$list_que = "select * from gb_write_freeboard order by wr_datetime DESC limit $limit";
$result_list=mysql_db_query($Database,$list_que);
$total=mysql_affected_rows();

if ($total<$limit){
$loop_count = $total;
}else{
$loop_count = $limit;
}

for($i=0; $i<$loop_count; $i++){
$row_list = mysql_fetch_array($result_list);
$subject = $row_list[wr_subject];
$subject = stripslashes($subject);
$subject=subject_cut($subject,$text_limit);
$wdate = date("Y/m/d",$row_list[wr_datetime]);

echo"<tr>
<td height=25 style='border-right-style:solid; border-left-style:solid; border-width:1px; border-color:#cccccc'> &nbsp; &nbsp;
<img src='$Shop_Main_URL/images/jum01.gif' align='absmiddle'>&nbsp;<a href=\"$Shop_Main_URL/gnu3/?doc=bbs/gnuboard.php&bo_table=notice&wr_id=$wr_id\"><font color='gray'>$subject</font> <font color='#555555'>[$wdate]</font></a>
</td>
</tr>
<tr>
<td height=1 background='$Shop_Main_URL/images/line_dot.gif'></td>
</tr>";

}
} // end func

-----------------------------------------------------------------------------------------------------

<!-- 그누보드 불러오기 -->
<table width="280" border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=10></td>
</tr>
<tr>
<td height=46 align=right background="<?=$Shop_Main_URL?>/images/freeboard_info.gif"><a href="<?=$Shop_Main_URL?>/gnu3/?doc=bbs/gnuboard.php&bo_table=freeboard&f=freeboard"><img src="<?=$Shop_Main_URL?>/images/more2.gif" align="absmiddle" border=0></a> &nbsp; </td> </tr>
<?freeboard_listing("5","29");?>
</table>
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
20년 전 조회 838
20년 전 조회 984
20년 전 조회 736
이윤호
20년 전 조회 779
20년 전 조회 673
20년 전 조회 794
20년 전 조회 801
20년 전 조회 750
20년 전 조회 646
20년 전 조회 649
20년 전 조회 638
20년 전 조회 661
20년 전 조회 665
20년 전 조회 969
20년 전 조회 768
20년 전 조회 915
20년 전 조회 639
20년 전 조회 903
20년 전 조회 731
20년 전 조회 712
🐛 버그신고