|
|
|
12-01-17
|
조회 937
|
|
|
|
12-01-17
|
조회 1,689
|
|
|
|
12-01-17
|
조회 1,728
|
|
|
|
12-01-17
|
조회 7,607
|
|
|
|
12-01-17
|
조회 1,084
|
|
|
|
12-01-17
|
조회 1,236
|
|
|
|
12-01-17
|
조회 2,415
|
|
|
|
12-01-17
|
조회 1,069
|
|
|
|
12-01-17
|
조회 2,292
|
|
|
|
12-01-17
|
조회 1,620
|
|
|
|
12-01-17
|
조회 1,351
|
|
|
|
12-01-17
|
조회 1,647
|
|
|
|
12-01-17
|
조회 1,107
|
|
|
|
12-01-17
|
조회 1,550
|
|
|
|
12-01-17
|
조회 1,066
|
|
|
|
12-01-17
|
조회 1,761
|
|
|
|
12-01-17
|
조회 1,620
|
|
|
|
12-01-17
|
조회 1,720
|
|
|
|
12-01-17
|
조회 1,619
|
|
|
|
12-01-17
|
조회 1,037
|
댓글 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);
이렇게 하는데 도무지 개념은 이해가 가는데... 막상 그림은 안 그려지네요