코멘트 줄바꿈수정 질문이요 ㅠㅠ 정보
코멘트 줄바꿈수정 질문이요 ㅠㅠ본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
<!-- 코멘트 출력 -->
<div>
<?
$str = $list[$i][content];
if ($str == '비밀글 입니다.')
$str = "<span class='cloudy small'>$str</span>";
$str = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $str);
echo $str;
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
?>
</div>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 --> </td>
</tr>
</table>
<? nl2br($list[$i][wr_content]); "<input type=hidden id='secret_comment_{$comment_id}' value='".strstr($list[$i][wr_option],"secret")."'>"; ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=20></td></tr>
</table><textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=nl2br($list[$i][wr_content])?></textarea></td>
</tr>
</table>
<? } ?>
</div>
-----------------------------------------
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=nl2br($list[$i][wr_content])?></textarea>
이렇게 수정했는데도 줄바꿈이 되지않고 엔터 친부분이 그냥 띄어쓰기 되서 출력되는데
어디가 잘 못된건지 알 수있을까요??? ㅠㅠㅠㅠ 몇달째 혼자 앓고있는데 꼭 좀 답변 부탁드려요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠ
오류 주소 :
<!-- 코멘트 출력 -->
<div>
<?
$str = $list[$i][content];
if ($str == '비밀글 입니다.')
$str = "<span class='cloudy small'>$str</span>";
$str = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $str);
echo $str;
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
?>
</div>
<? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
<span id='edit_<?=$comment_id?>' style='display:none;'></span><!-- 수정 -->
<span id='reply_<?=$comment_id?>' style='display:none;'></span><!-- 답변 --> </td>
</tr>
</table>
<? nl2br($list[$i][wr_content]); "<input type=hidden id='secret_comment_{$comment_id}' value='".strstr($list[$i][wr_option],"secret")."'>"; ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=20></td></tr>
</table><textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=nl2br($list[$i][wr_content])?></textarea></td>
</tr>
</table>
<? } ?>
</div>
-----------------------------------------
<textarea id='save_comment_<?=$comment_id?>' style='display:none;'><?=nl2br($list[$i][wr_content])?></textarea>
이렇게 수정했는데도 줄바꿈이 되지않고 엔터 친부분이 그냥 띄어쓰기 되서 출력되는데
어디가 잘 못된건지 알 수있을까요??? ㅠㅠㅠㅠ 몇달째 혼자 앓고있는데 꼭 좀 답변 부탁드려요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠ
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '275044' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php