주문상품 갯수에 따라 입력내용 출력 하는 조건문
본문
조건문 질문하나 드립니다.
영카트에서 주문상품 갯수가 <?php echo number_format($sum['qty']); ?> 으로 나옵니다.
만약 주문상품 갯수가 2개이면
<div class="tbl_frm01 tbl_wrap">
<table>
<tbody>
<tr>
<th scope="row"><label for="od_name">name<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="od_n1" value="<?php echo get_text($member['mb_n1']); ?>" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_tel">Contact Number<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="od_n2" value="<?php echo get_text($member['mb_n2']); ?>" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="od_n3" value="<?php echo get_text($member['mb_n3']); ?>" required class="frm_input required" size="35" maxlength="100"></td>
</tr>
<tr>
<th scope="row"><label for="od_tel">Passport Number<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="od_n4" value="<?php echo get_text($member['mb_n4']); ?>" required class="frm_input required" maxlength="20"></td>
</tr>
<tr>
<th scope="row"><label for="od_tel">Nationality<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="od_n5" value="<?php echo get_text($member['mb_n5']); ?>" required class="frm_input required" maxlength="20"></td>
</tr>
</tbody>
</table>
</div>
위처럼 추가입력 내용이 나오도록 하고싶습니다.
조건문을 만들면될것같은데 초보라 헤메고있습니다.
고수님들의 도움 부탁드립니다.!!