preg_match_all 이상해요? 정보
preg_match_all 이상해요?본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
$view1 = '<div class="list_con">조인성</div>';
$view2 = '<div class="userinfo">
<img class="ico_lv" src="../img/lv/21x21/2.gif" alt="이등병" title="이등병" />
<a class="uname" href="javascript:;" onclick="showSideView(this, "rain7", "죠인숑");" title="[rain7]죠인숑">
<span>죠인숑</span>
</a>
<span class="date">2013.12.11 (19:57:28)</span>
</div>';
preg_match_all('/<div class="list_con">(.*)<\/div>/',$view1,$comment);
preg_match_all('/<div class="userinfo">(.*)<\/div>/',$view2,$comment_name);
print_r($comment);
echo '<br/><br/><br/><br/>';
print_r($comment_name);
왜 한개만 작동할까요?...
실행해보시면
Array ( [0] => Array ( [0] =>
조인성
) [1] => Array ( [0] => 조인성 ) )
Array ( [0] => Array ( ) [1] => Array ( ) )
이렇게 출력이 되네요 ㅠㅠ
오류 주소 :
$view1 = '<div class="list_con">조인성</div>';
$view2 = '<div class="userinfo">
<img class="ico_lv" src="../img/lv/21x21/2.gif" alt="이등병" title="이등병" />
<a class="uname" href="javascript:;" onclick="showSideView(this, "rain7", "죠인숑");" title="[rain7]죠인숑">
<span>죠인숑</span>
</a>
<span class="date">2013.12.11 (19:57:28)</span>
</div>';
preg_match_all('/<div class="list_con">(.*)<\/div>/',$view1,$comment);
preg_match_all('/<div class="userinfo">(.*)<\/div>/',$view2,$comment_name);
print_r($comment);
echo '<br/><br/><br/><br/>';
print_r($comment_name);
왜 한개만 작동할까요?...
실행해보시면
Array ( [0] => Array ( [0] =>
조인성
) [1] => Array ( [0] => 조인성 ) )
Array ( [0] => Array ( ) [1] => Array ( ) )
이렇게 출력이 되네요 ㅠㅠ
( 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 = '283939' 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