|
|
|
18년 전
|
조회 1,668
|
|
|
|
18년 전
|
조회 1,648
|
|
|
|
18년 전
|
조회 1,683
|
|
|
|
18년 전
|
조회 1,539
|
|
|
|
18년 전
|
조회 1,793
|
|
|
|
18년 전
|
조회 1,699
|
|
|
|
18년 전
|
조회 1,530
|
|
|
|
18년 전
|
조회 1,811
|
|
|
|
18년 전
|
조회 2,201
|
|
|
|
18년 전
|
조회 1,415
|
|
|
|
18년 전
|
조회 1,594
|
|
|
|
18년 전
|
조회 1,627
|
|
|
|
18년 전
|
조회 1,588
|
|
|
|
18년 전
|
조회 1,865
|
|
|
|
18년 전
|
조회 1,904
|
|
|
|
18년 전
|
조회 1,554
|
|
|
|
18년 전
|
조회 1,522
|
|
|
|
18년 전
|
조회 1,543
|
|
|
|
18년 전
|
조회 1,619
|
|
|
|
18년 전
|
조회 1,792
|
댓글 3개
---------------------------------------------------------------
<? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?>
<tr>
<td width="25" align="center"><? if ($i == 1) { echo "<img src='$poll_skin_path/img/a.gif' width='12' height='13'>"; } else { echo " "; } ?></td>
<td width="30" height="25" align="center"><input type="radio" name="gb_poll" value="<?=$i?>" id='gb_poll_<?=$i?>'></td>
<td width=""><font color="#848484"><label for='gb_poll_<?=$i?>'><?=$po['po_poll'.$i]?></label></font></td>
</tr>
<? } ?>
------------------------------------------------------------------------------------
여기에서 <? for ($i=1; $i<=9 && $po["po_poll{$i}"]; $i++) { ?> 이부분의 $i<=9 이 부분을 원하시는 숫자로 변경해 주세요.
15개를 원하시면 $i<=15 로 해 주시면 되겠지요.
우선 투표 테이블에 필드 6개를 추가해야하고,
adm / poll_form.php
adm / poll_form_update.php
파일에 입력항목을 6개씩 추가해야 합니다.... ^^
그렇게 하니까 10단위와 1단위가 충돌을 하는지 중복되는지 15항목 모두 입력하고 확인 누르면 6,7,8,9 항목만 남고 항목에 입력한 내용이 없어집니다.
제생각에 10단위는 생각전혀 안하고 한자리수로만 프로그램을 만든거 같습니다
방금 poll_form, poll_form_update, poll_list, 그리고 스킨의 poll.skin 까지 1,2,3,4~9를 죄다 01,02,03....09 로 바꿔봤는데
select sum(po_cnt01+po_cnt02+po_cnt03+po_cnt04+po_cnt05+po_cnt06+po_cnt07+po_cnt08+po_cnt09) as sum_po_cnt from g4_poll where po_id = '4'
1054 : Unknown 칼럼 'po_cnt01' in 'field list'
이런 오류가 뜹니다
php에 대해서 알지 못하면 안될거 같습니다.
고수분의 도움이 절실합니다 ㅠㅠ