아래와 같이 해보세요. 역시 꽁순데 정규표현식으로 문자패턴을 찾아서 치환하는 방식입니다.
$latest_list[memo] = preg_replace("/||(.*)||/i","",$latest_list[memo]);
일단 꽁수로 해결을 보고 사장님관을 넘긴다음 다시 그 문자가 생기는 근본적인 원인을 해결하세요.
지금 저로서는 소스코들 못본 이상 그렇다할 문제점을 제시해 드릴수가 없군요.
이렇게 빨리 답변을 주셔서 너무 감사합니다. 음, 그런데 처음에 제가 꽁수를 적용한것이 잘못되었는지 알려주신 소를 떨리는 마음에 적용해보니 아예 최신코멘트가 뜨지를 않는군요..
소스는 아래와 같습니다.
$comm_data = mysql_query("select name,parent,from_unixtime(reg_date,'%Y-%m-%d %H:%i') comm_date, memo from zetyx_board_comment_$board_title where password <> 'TrackBack' order by reg_date desc limit $comment_font_count") ;
while ($latest_list = mysql_fetch_array($comm_data)) {
$memo = stripslashes($latest_list[memo]);
// $latest_list[memo] = str_replace("||","",$latest_list[memo]);
$latest_list[memo] = preg_replace("/||(.*)||/i","",$latest_list[memo]);
$memo = cut_strlen($latest_list[memo], $comment_length);
$memo = stripslashes($memo);
echo "<p style='line-height:100%; margin-top:6px; margin-bottom:6;'>";
echo "<font style=font-size:9px;color:#999999;>▶ </font><a href=./zboard.php?id=$board_title&go_no=$latest_list[parent] title='$latest_list[name]님이 $latest_list[comm_date]에 작성'>$memo</a>";
echo "</p>";
제목 | 상태 | 답변수 | 글쓴이 | 날짜 |
---|---|---|---|---|
3 |
싹싹꿀꿀이 |
04/09/20 |
||
3 |
무궁화 |
04/09/18 |
||
4 |
랑콤향수 |
04/09/18 |
||
2 |
04/09/18 |
|||
1 |
이하순 |
04/09/17 |
||
3 |
샌달 |
04/09/17 |
||
1 |
화성남자 |
04/09/17 |
||
1 |
비조 |
04/09/17 |
||
1 |
마이러브 |
04/09/17 |
||
1 |
소망 |
04/09/17 |
||
1 |
04/09/16 |
|||
2 |
진주 |
04/09/16 |
||
1 |
초등생 |
04/09/16 |
||
6 |
04/09/16 |
|||
2 |
yaluo |
04/09/15 |
||
3 |
04/09/15 |
|||
2 |
04/09/15 |
|||
1 |
한민족단결 |
04/09/15 |
||
2 |
☞♥호야♥ |
04/09/15 |
||
2 |
도랑물 |
04/09/15 |