list.skin.php 수정 도와주세요. 정보
list.skin.php 수정 도와주세요.
첨부파일
본문
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=32664&sca=&sfl=wr_subject&stx=%BB%E7%C0%CC%C6%AE&sop=and&page=3
위의 게시판에
<?
if ($list[$i][comment_k]) {
echo "<a href=\"{$list[$i][comment_href]}\"><span style='font-size:9pt;'>{$list[$i][comment_k]}개의 평가가 있습니다.</span></a>";
} else {
echo "<span style='font-size:9pt;'>평가가 없습니다</span>";
}
?>
이소스만 넣으면 오류가납니다..list.skin.php 첨부했구요..
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</a>";
이게 있어서 바꾸기만 했는데 오류가나네요..
위의 게시판에
<?
if ($list[$i][comment_k]) {
echo "<a href=\"{$list[$i][comment_href]}\"><span style='font-size:9pt;'>{$list[$i][comment_k]}개의 평가가 있습니다.</span></a>";
} else {
echo "<span style='font-size:9pt;'>평가가 없습니다</span>";
}
?>
이소스만 넣으면 오류가납니다..list.skin.php 첨부했구요..
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</a>";
이게 있어서 바꾸기만 했는데 오류가나네요..
댓글 전체

얼핏 봐서 문제 없어 보이는데 무슨 오류가 나는지 써주시면 원하는 답변 얻으실 수 있을 겁니다.

이번엔 오류는 안나는데 코멘트수를 불러오질못하네요..

<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($is_checkbox)
echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'> ";
if ($is_category) {
echo "<a href=".$list[$i][ca_name_href]." style=color:#9999cc>[".$list[$i][ca_name]."]</a> ";
}
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list><b>{$list[$i][subject]}</b></font>";
echo "</a>";
if ($list[$i][comment_cnt]) {
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}개의 평가가 있습니다.</span>)</a>";
} else {
echo "(<span style='font-size:9pt;'>평가가 없습니다</span>)";
}
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
요렇게 해결했습니다..숫자 의 ) 이 없엘수가없네요/
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($is_checkbox)
echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'> ";
if ($is_category) {
echo "<a href=".$list[$i][ca_name_href]." style=color:#9999cc>[".$list[$i][ca_name]."]</a> ";
}
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list><b>{$list[$i][subject]}</b></font>";
echo "</a>";
if ($list[$i][comment_cnt]) {
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}개의 평가가 있습니다.</span>)</a>";
} else {
echo "(<span style='font-size:9pt;'>평가가 없습니다</span>)";
}
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
요렇게 해결했습니다..숫자 의 ) 이 없엘수가없네요/

echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}개의 평가가 있습니다.</span>)</a>";
여기서 "</a>" 앞에 ")"가 있네요.
여기서 "</a>" 앞에 ")"가 있네요.

그거 말고 하나더 있는데 안되네요..암튼감사합니다.