질문이요~ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

질문이요~ 정보

질문이요~

본문

먼저 소스는...아래처럼 되어 있구요..
 
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<?
    $cnt = 1;
    $sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table='$bo_table' ";
    $row = sql_fetch($sql);
    $arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
    $str = "";
    $str .= "";
    for ($i=0; $i<count($arr); $i++)
        if (trim($arr[$i]))  {
     $sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name='$arr[$i]' and wr_comment >=0 ";
         $row1 = sql_fetch($sql1);            
      $str .= "<a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&sca=$arr[$i]&sop=and&sst=wr_subject&sod=asc&sfl=&stx=&'>$arr[$i] ($row1[cCount])명</a>  ";
     if ($cnt%$board[bo_7] == 0) {
        $cnt = 0; $str .= "  ";
        }
         $cnt++;
    }   
    $sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
    $row2 = sql_fetch($sql2);
    $Total_Cat = $row2[cCount]
?>
<b><?=$board[bo_4]?></b>   <a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>&mode=subject'><b>전체 :<?=$Total_Cat?>명</font></a><br>   <?=$str?></b>
<table width="100%" cellspacing="0" cellpadding="0"><tr><td height="4"></td></tr>
</table>

현재는 이렇게 되어있습니다.
결과는

 전체 :60명
  가가가 (3)명    나나나 (9)명    다다다 (42)명    라라라 (4)명    마마마 (2)명

이것을

 전체 :60명
  가가가 (3)명
  개똥이  소똥이  말똥이

  나나나 (9)명 
  일순이  이순이  삼순이  사순이  오순이  육순이  칠순이
 
  다다다 (42)명
  홍길동 김말자...등등
 
 
이렇게 해야 하는데요..사람 이름부분이 게시판 제목(subject)인데요 이걸 나열하기가 너무 어렵습니다..
 
현재 분류와는 상관없이 전체 제목을 다 표현 해야 하는데 가능할까?

 
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로