게시판 리스트에 분류(카테고리)를 가로로 연결하는 코드를 넣었는데요
"'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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기