diff --git a/list.skin.php b/list.skin.php index 26b09a8..2f869ba 100644 --- a/list.skin.php +++ b/list.skin.php @@ -19,11 +19,12 @@ $lists = array(); if ($is_category) { $cate = explode('|', $board['bo_category_list']); } + for ($h = 0; $h <= count($cate); $h++) { if (count($cate) > 0 && $h == count($cate)) continue; - $list_item = sql_query("select * from {$write_table} where wr_reply='' and wr_is_comment=0 order by wr_10*1, wr_id"); + $list_item = sql_query("SELECT * FROM {$write_table} WHERE wr_reply='' AND wr_is_comment=0 ORDER BY wr_10*1, wr_id"); for ($k = 0; $row = sql_fetch_array($list_item); $k++) { $lists[$k] = get_list($row, $board, $board_skin_url); } @@ -33,57 +34,61 @@ $lists = array();
- - class="name"> - - = $lists[$i]['wr_1'] ?> - - - - - - -
-+ + class="name"> + + = $lists[$i]['wr_1'] ?> + + + + + + +
+