코멘트 내용 스타일 시트 적용하는법.
if (strstr($list[$i][wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
----------------------------------------------------------------------------
$str = $list[$i][content];
윗 코멘트 내용을 스타일 시트 적용하려는데 에러나네요.
아래와 같이 했더니 에러납니다..왜그럴까요?
$str = "<span class='small' style='color:#ffffff;'>$list[$i][content];</span>";
$str = $list[$i][content];
if (strstr($list[$i][wr_option], "secret"))
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
----------------------------------------------------------------------------
$str = $list[$i][content];
윗 코멘트 내용을 스타일 시트 적용하려는데 에러나네요.
아래와 같이 했더니 에러납니다..왜그럴까요?
$str = "<span class='small' style='color:#ffffff;'>$list[$i][content];</span>";
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 4개
$str = "<span class='small' style='color:#ff6600;'>$str</span>";
위에서 color:#fff 으로 변경.확인 해 보세요. * 는 기존색 유지
$list[$i][content]
$str = $list[$i][content];
$str = "<span class='small' style='color:#fff;'>$str</span>"; // 추가
방법2
$str = "<span class='small' style='color:#fff;'>{$list[$i][content]}</span>";
둘 중 하나 선택 사용