카테고리 탭을 이용하려고 하는데 정보
카테고리 탭을 이용하려고 하는데
본문
<table cellpadding=0 cellspacing=0 width=100% border=0>
<tr>
<td>
<link rel="stylesheet" type="text/css" href="<?php echo $board_skin_path; ?>/cate_tab.css"/>
<div id="navcontainer" align=left><ul id="navlist">
<li><? if (!$sca){?><a id=current href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><b><font color=#ffffff>ALL</font></b>
<font color=#dddddd>(<?
$total=sql_fetch("select sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}else{?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>ALL
<font color=#888888>(<?
$total=sql_fetch("select sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}?>
</a></li><? if ($is_category) { ?>
<?
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
$f_open="id=current";
$f_close="";
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_is_comment = 0 ";
$row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b style='color: white;'>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?=$str?>
<? } ?>
</ul></div>
</td>
</tr>
</table>
소스는 이렇게 되는데요~ 상단에 문자가 안지워지네요
<tr>
<td>
<link rel="stylesheet" type="text/css" href="<?php echo $board_skin_path; ?>/cate_tab.css"/>
<div id="navcontainer" align=left><ul id="navlist">
<li><? if (!$sca){?><a id=current href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><b><font color=#ffffff>ALL</font></b>
<font color=#dddddd>(<?
$total=sql_fetch("select sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}else{?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>ALL
<font color=#888888>(<?
$total=sql_fetch("select sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}?>
</a></li><? if ($is_category) { ?>
<?
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
$f_open="id=current";
$f_close="";
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_is_comment = 0 ";
$row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b style='color: white;'>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?=$str?>
<? } ?>
</ul></div>
</td>
</tr>
</table>
소스는 이렇게 되는데요~ 상단에 문자가 안지워지네요
댓글 전체

카테고리는 게시판관리에서 카테고리명 넣는게 있자나요 그걸 수정하시면 될것같구요
이페이지에서의 카테고리는
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
요기가 불러오는곳이고
아래는 뿌려지는 부분
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}
이페이지에서의 카테고리는
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
요기가 불러오는곳이고
아래는 뿌려지는 부분
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}

아니요~ 제 말은 "ALL" 카테고리 위에 한문으로 모라고 쓰여 있는 저 문자가 안지워 진다는...

저거는 인코딩이나 문자셋이 틀려서 나오는 오류군요.
인코딩방식부터 확인해 보셔요
인코딩방식부터 확인해 보셔요

에공...그러네요~ 감사합니다...ㅋ 질문 올리기전에 확인 먼저 했어야 하는데~