성명 ** 오류 문제 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

성명 ** 오류 문제 정보

성명 ** 오류 문제

본문

<?=substr($ext1_00[0], 0, -6).'**'?>
위의 소스를 이용해서 이름이 ** 이와 같이 나오도록 잘 사용하고 있었습니다.

리스트에 색깔을 추가하려고 아래의 소스를 첨가 했습니다.
    <?if ($list[$i][is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
                else if ($list[$i][wr_12] == "1")
{ $ext1_00[0]="<font color=red><b>".$ext1_00[0]."</b></font>";
  $ext1_01[0]="<font color=red><b>".$ext1_01[0]."</b></font>";
                echo " "?></span></a>
위의 소스를 첨가한 후
<?=substr($ext1_00[0], 0, -6).'**'?>의 소스가 작동을 하지 못하고 있습니다.
그래서
 
<?php
  if($member[mb_level] >= 10) { // 관리자는 전체보기
    echo $list[$i][name];
  } else {
    mb_internal_encoding('UTF-8');  // utf-8 일때
    $string = $ext1_00[0];  // 실명을 사용할 경우
    echo mb_substr($string, 0, 1); // 첫글자
    echo "*";
    echo mb_substr($string, 2, 20); // 세번째 이후 글자
  }
?>
위의 소스를 이용해서 시도를 해보았으나 같은 현상입니다.

전에는 홍** 이와 같이 나왔으나,
지금은 홍길동 <** 이런식으로 나오고 있습니다.
어떻게 해결을 해야하는지요.
대단히 감사합니다.

( 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 = '283705' 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