db에서 셀렉트박스로 값 가져오기 질문.. > 그누4 질문답변

그누4 질문답변

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

db에서 셀렉트박스로 값 가져오기 질문.. 정보

db에서 셀렉트박스로 값 가져오기 질문..

본문

회원정보수정페이지를 따로 만들어서
회원db에 들어있는 전화번호값을 셀렉트박스로 가져오는건데요
우선 소스는
<?
$fsql = mysql_query("select substring(mb_hp,1,3) from g4_member where mb_id = '$member[mb_id]'");
$fsql1 = mysql_fetch_row($fsql);
?>
<select name="shp" value="<?=$fsql1[0]?>" required>
<option value="010" <?=if($fsql1[0] == '010') { ?> selected<?= } ?>>010</option>
<option value="011" <?=else if($fsql1[0] == '011') { ?> selected<?= } ?>>011</option>
<option value="016" <?=else if($fsql1[0] == '016') { ?> selected<?= } ?>>016</option>
<option value="017" <?=else if($fsql1[0] == '017') { ?> selected<?= } ?>>017</option>
<option value="018" <?=else if($fsql1[0] == '018') { ?> selected<?= } ?>>018</option>
<option value="019" <?=else if($fsql1[0] == '019') { ?> selected<?= } ?>>019</option>
</select>
이렇게 되어있는데 자꾸 Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in
이런 에러가 나네요;
,또는 ;이게 빠졌다는 소리같은데 ;를 어디다가 넣어야되는건지 모르겠네요
고수분들 도와주세요ㅠ

( 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_id = '234815' and wr_id != '2008' ) union ( 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 = '234811' 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