상품정보고시 입력시만 출력
본문
상품정보고시 각각 위에 모델 처럼 해당값이 입력된값만 나오게로 변경하려면 어떻게 해야하나요?
<td><?php echo $ii_value; ?></td> 이 입력이 안되면 그 tr은 안나오게 하고 싶거든요
<?php if ($it['it_model']) { ?>
<?php } ?>
<th scope="row">모델</th>
<td><?php echo $it['it_model']; ?></td>
</tr>
<?php } ?>
<?php
} //foreach?>
$info_data = unserialize(stripslashes($it['it_info_value']));
if(is_array($info_data)) {
$gubun = $it['it_info_gubun'];
$info_array = $item_info[$gubun]['article'];
foreach($info_data as $key=>$val) {
$ii_title = $info_array[$key][0];
$ii_value = $val;
?>
<tr>
<th scope="row"><?php echo $ii_title; ?></th>
<td><?php echo $ii_value; ?></td>
</tr>
<?php }
}
} //foreach?>
!-->
답변을 작성하시기 전에 로그인 해주세요.