상품정보고시 각각 위에 모델 처럼 해당값이 입력된값만 나오게로 변경하려면 어떻게 해야하나요?
<td><?php echo $ii_value; ?></td> 이 입력이 안되면 그 tr은 안나오게 하고 싶거든요
Copy
<?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?>
|
답변 1개
채택된 답변
+20 포인트
2014-10-28 (화) 13:50:27
19행 다음 줄에 추가
if( trim($ii_value)){
25행 수정
<?php } }
답변을 작성하려면 로그인이 필요합니다.