게시판 리스트에 분류(카테고리)를 가로로 연결하는 코드를 넣었는데요
"'document.fcategory.sca'은(는) null 이거나 개체가 아닙니다" 라는 왜 자바스크립트 오류가 뜰까요?
인코딩은 utf-8입니다`
<? if ($is_category) { ?>
<div class='cagegory'>
<?
$arr = array();
$arr[] = "<img src='$board_skin_path/img/ico_cate_all.gif' align='absmiddle'> <b><a href='?bo_table=$bo_table'>전체</a></b> <span>($board[bo_count_write])</span>";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<img src='$board_skin_path/img/ico_cate.gif' align='absmiddle'> <a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> <span>($row[cnt])</span>";
}
$str = implode(" ", $arr);
echo $str;
?>
</div>
<? } ?>
"'document.fcategory.sca'은(는) null 이거나 개체가 아닙니다" 라는 왜 자바스크립트 오류가 뜰까요?
인코딩은 utf-8입니다`
<? if ($is_category) { ?>
<div class='cagegory'>
<?
$arr = array();
$arr[] = "<img src='$board_skin_path/img/ico_cate_all.gif' align='absmiddle'> <b><a href='?bo_table=$bo_table'>전체</a></b> <span>($board[bo_count_write])</span>";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<img src='$board_skin_path/img/ico_cate.gif' align='absmiddle'> <a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> <span>($row[cnt])</span>";
}
$str = implode(" ", $arr);
echo $str;
?>
</div>
<? } ?>
댓글 2개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기