아래 코드를 합칠 수 있나요? 정보
아래 코드를 합칠 수 있나요?본문
//첨부파일 확장자 추출
$image0 = urlencode($list[$i][file][0][file]);
$image1 = urlencode($list[$i][file][1][file]);
$image2 = urlencode($list[$i][file][2][file]);
elseif (preg_match("/\.(gif|jpg|jpeg|png)$/i", $image0))
echo "<img src=\"$board_skin_path/img/icon_image.png\" align=absmiddle>";
elseif (preg_match("/\.(gif|jpg|jpeg|png)$/i", $image1))
echo "<img src=\"$board_skin_path/img/icon_image.png\" align=absmiddle>";
elseif (preg_match("/\.(gif|jpg|jpeg|png)$/i", $image2))
echo "<img src=\"$board_skin_path/img/icon_image.png\" align=absmiddle>";
첨부파일를 첫번째부터 업로드하면 좋으련만 그게 아닌 경우도 있어서
0번만 사용하다가 임의로 늘려보니 길어서 질문드립니다.
( 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 = '282848' 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