|
|
|
14년 전
|
조회 868
|
|
|
|
14년 전
|
조회 1,465
|
|
|
|
14년 전
|
조회 882
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 1,663
|
|
|
|
14년 전
|
조회 7,538
|
|
|
|
14년 전
|
조회 1,033
|
|
|
|
14년 전
|
조회 1,172
|
|
|
|
14년 전
|
조회 2,336
|
|
|
|
14년 전
|
조회 1,001
|
|
|
|
14년 전
|
조회 2,227
|
|
|
|
14년 전
|
조회 1,545
|
|
|
|
14년 전
|
조회 1,278
|
|
|
|
14년 전
|
조회 1,580
|
|
|
|
14년 전
|
조회 1,027
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 991
|
|
|
|
14년 전
|
조회 1,682
|
|
|
|
14년 전
|
조회 1,550
|
|
|
|
14년 전
|
조회 1,651
|
댓글 2개
조건1, 현제 날짜에서 3일전것까지 로드
조건2, 댓글수로 desc
for($i=0; $temp = sql_fetch_array($tsql); $i++) {
$temp1[$i] = $temp;
}
@mysql_free_result($tsql);
unset($temp);
foreach($temp1 as $temp) {
$array_new = sql_fetch(" select count(wr_comment) AS cnt from ". $g4['write_prefix'].$temp[bo_table]. " where wr_id = '$temp[wr_id]' order by cnt desc limit 10");
if($array_new['wr_subject']=="") {
echo "<a href=\"".$g4['path']."/bbs/board.php?bo_table=$temp[bo_table]&wr_id=$temp[wr_id]\">".cut_str($array_new['wr_content'], 16,'...')." <font color='#999999' style='font-size:8pt;'>(".$array_new['wr_hit'].")</a></font><br>";
} else {
echo "<a href=\"".$g4['path']."/bbs/board.php?bo_table=$temp[bo_table]&wr_id=$temp[wr_id]\">".cut_str($array_new['wr_subject'], 16,'...')." <font color='#999999' style='font-size:8pt;'>(".$array_new['wr_hit'].")</a></font><br>";
}
unset($temp1);
unset($array_new);
이렇게 하는데 도무지 개념은 이해가 가는데... 막상 그림은 안 그려지네요