글자색이 검정이 아니고. ㅠ.ㅠ > 그누4 질문답변

그누4 질문답변

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

글자색이 검정이 아니고. ㅠ.ㅠ 정보

글자색이 검정이 아니고. ㅠ.ㅠ

본문

아래 소스로 코멘트를 추출했는데 추출된 글자색이 검정색이 아니고 연한 하늘색으로 추출되는데 검정색으로 추출하려면 어떻게 해야할지 ㅠ.ㅠ

== 소스--

<?
$gr_id = "ebs";

$sql = " select a.wr_id, a.wr_parent, a.bo_table, b.bo_subject from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and a.wr_id != a.wr_parent and c.gr_id = '$gr_id' order by a.bn_datetime desc limit 0, 15 ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {

    $sql = " select * from {$g4['write_prefix']}{$row['bo_table']} where wr_id = '{$row['wr_id']}' ";
    $data = sql_fetch($sql);

    $data['wr_content'] = str_replace("&nbsp;", " ", $data['wr_content']);
    $data['wr_content'] = str_replace(" ", " ", $data['wr_content']);
    $data['wr_content'] = str_replace("\n", " ", $data['wr_content']);

    echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$row['bo_table']."&wr_id=".$row['wr_parent']."#c_".$row['wr_id']."'>".cut_str(strip_tags($data['wr_content']), 20, "...")."</a><br>";

}
?>
  • 복사

댓글 전체

echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$row['bo_table']."&wr_id=".$row['wr_parent']."#c_".$row['wr_id']."'>".cut_str(strip_tags($data['wr_content']), 20, "...")."</a><br>";

>>>
echo "<a href='".$g4['bbs_path']."/board.php?bo_table=".$row['bo_table']."&wr_id=".$row['wr_parent']."#c_".$row['wr_id']."'>

<font color='#000000'>

".cut_str(strip_tags($data['wr_content']), 20, "...")."

</font>

</a><br>";
© SIRSOFT
현재 페이지 제일 처음으로