짜집기한건데 스크립트오류가 심해요 ㅠㅠ 정보
짜집기한건데 스크립트오류가 심해요 ㅠㅠ
본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 1; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=16; //표시할 이미지의 가로사이즈
$imgheight=16; //표시할 이미지의 세로사이즈
$col_width = (int)(100 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="145" height="30" cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr onmouseover='this.style.backgroundColor="#f0f0f0"' onmouseout='this.style.backgroundColor="#FFFFFF"'>
<td colspan=4 align=center>
<table width="145" height="30">
<tr>
<td height="20">
<img src='<?=$latest_skin_path?>/img/<?=$i+1;?>.gif' align=absmiddle>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo "<a href='{$list[$i][link_href][1]}' target=_blank><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #ffffff; padding:0px'></a>";
echo $list[$i]['icon_reply'] . " ";
echo "<a style='text-decoration:none;' onMouseover='this.style.textDecoration='underline';' onMouseout='this.style.textDecoration='none';' href='{$list[$i]['wr_link1']}' target=_blank>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9; position:relative; top:2px'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A; position:relative; top:2px'>{$list[$i]['subject']}</font>";
echo "</a>";?>
</td></tr>
<tr>
<td height="1"><img src='<?=$latest_skin_path?>/img/line.gif' align=absmiddle></td>
</tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>
==============================================================================
위 소스는 최근게시물 짜집기 한건데 실행은 잘돼요 근데 스크립트오류가 너무 심하게 나오는데
뭔가 문제인지 도무지 모르겟어요 ㅠㅠ
( 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 = '284011' 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
