아래와 같이 해보세요. 역시 꽁순데 정규표현식으로 문자패턴을 찾아서 치환하는 방식입니다.
$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>";
제목 | 상태 | 답변수 | 글쓴이 | 날짜 |
---|---|---|---|---|
7 |
이완희굿 |
19/01/20 |
||
15 |
jackey |
19/01/19 |
||
2 |
고정아이피 |
19/01/11 |
||
4 |
행운7 |
18/12/31 |
||
3 |
아라요 |
18/12/29 |
||
2 |
VIP신용 |
18/12/24 |
||
6 |
고투코리아 |
18/12/20 |
||
1 |
울컥 |
18/12/16 |
||
1 |
abc456789 |
18/12/13 |
||
2 |
봄봄란란 |
18/12/09 |
||
7 |
백두고향 |
18/12/03 |
||
4 |
금형정밀 |
18/12/03 |
||
5 |
찡따오 |
18/12/01 |
||
1 |
해피라이스 |
18/11/28 |
||
2 |
하늘은나의것 |
18/11/25 |
||
1 |
하늘은나의것 |
18/11/24 |
||
5 |
백두의 혼 |
18/11/19 |
||
3 |
벌벌벌 |
18/11/15 |
||
2 |
abc456789 |
18/11/14 |
||
1 |
GS글로벌 |
18/11/12 |