전화번호 앞자리를 선택하게 하려고 한는데... 정보
전화번호 앞자리를 선택하게 하려고 한는데...본문
<tr>
<td class=write_head>전화번호</td>
<td style='padding:0 0 0 10;'>
<input name='ext2_00' class='field' required value='<?=$ext2_00?>' type='text' size='4' maxlength='4' itemname='번호' />
-
<input name='ext2_01' class='field' required value='<?=$ext2_01?>' type='text' size='6' maxlength='4' itemname='번호' />
-
<input name='ext2_02' class='field' required value='<?=$ext2_02?>' type='text' size='6' maxlength='4' itemname='번호' /></td>
<td class=write_head>핸드폰</td>
<td style='padding:0 0 0 10;'><input name='ext2_03' class='field' value='<?=$ext2_03?>' type='text' size='4' maxlength='4' itemname='번호 ' />
-
<input name='ext2_04' class='field' value='<?=$ext2_04?>' type='text' size='6' maxlength='4' itemname='번호 ' />
-
<input name='ext2_05' class='field' value='<?=$ext2_05?>' type='text' size='6' maxlength='4' itemname='번호 세번째자리' /></td></tr>
<tr>
-------------------------------------------
첫번째 칸을 SELECT로 바꾸려고
<SELECT NAME="ext2_00" required itemname="번호">
<option value='선택'>선택</option>
<option value='010'>010</option>
<option value='016'>016</option>
<option value='019'>019</option>
</select>
첫번째 칸을 이렇게 바꾸었는데요. 글쓰면 잘 나와요.
근데 수정 버튼을 누르면 선택한 010으로 고정되 있는게 아니라 선택으로
나오는데
혹시 글쓴대로 고정시키는 방법이 있을까요?
<td class=write_head>전화번호</td>
<td style='padding:0 0 0 10;'>
<input name='ext2_00' class='field' required value='<?=$ext2_00?>' type='text' size='4' maxlength='4' itemname='번호' />
-
<input name='ext2_01' class='field' required value='<?=$ext2_01?>' type='text' size='6' maxlength='4' itemname='번호' />
-
<input name='ext2_02' class='field' required value='<?=$ext2_02?>' type='text' size='6' maxlength='4' itemname='번호' /></td>
<td class=write_head>핸드폰</td>
<td style='padding:0 0 0 10;'><input name='ext2_03' class='field' value='<?=$ext2_03?>' type='text' size='4' maxlength='4' itemname='번호 ' />
-
<input name='ext2_04' class='field' value='<?=$ext2_04?>' type='text' size='6' maxlength='4' itemname='번호 ' />
-
<input name='ext2_05' class='field' value='<?=$ext2_05?>' type='text' size='6' maxlength='4' itemname='번호 세번째자리' /></td></tr>
<tr>
-------------------------------------------
첫번째 칸을 SELECT로 바꾸려고
<SELECT NAME="ext2_00" required itemname="번호">
<option value='선택'>선택</option>
<option value='010'>010</option>
<option value='016'>016</option>
<option value='019'>019</option>
</select>
첫번째 칸을 이렇게 바꾸었는데요. 글쓰면 잘 나와요.
근데 수정 버튼을 누르면 선택한 010으로 고정되 있는게 아니라 선택으로
나오는데
혹시 글쓴대로 고정시키는 방법이 있을까요?
( 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 = '225239' 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