입력된 값이 있을경우에만 리스트에 노출시킬수 있도록 하고싶어요 정보
입력된 값이 있을경우에만 리스트에 노출시킬수 있도록 하고싶어요본문
echo "<td width='{$td_width}%' valign='top' align='left'>";
echo "<table cellpadding='0' cellspacing='0'>";
echo "<tr valign='top'>";
echo "<td style='border:solid 1px #e2e2e2; width:140; height:140;' align='center'>";
echo "<table width='140' height='140' cellpadding='0' cellspacing='0' border='0'><td align='center'><a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)'>{$img}</a></td></tr></table>";
echo "</td></tr>";
echo "<tr align=center><td height=8></td></tr>"; //여백
echo "<tr align=center><td><a href='{$list[$i][href]}'>$subject</a></td></tr>"; // 제목
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
if ($is_checkbox) {
echo "<tr align=center><td>$checkbox</td></tr>";
}
echo "<tr align=center><td height=20></td></tr>"; //여백
echo "</table>";
echo "</td>";
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
wr_10 에 입력된 값이 있을경우만 노출하고 싶은데
어떻게 수정해야 되나요?
echo "<table cellpadding='0' cellspacing='0'>";
echo "<tr valign='top'>";
echo "<td style='border:solid 1px #e2e2e2; width:140; height:140;' align='center'>";
echo "<table width='140' height='140' cellpadding='0' cellspacing='0' border='0'><td align='center'><a href='$g4[path]/data/file/$bo_table/$image') class='highslide' onclick='return hs.expand(this)'>{$img}</a></td></tr></table>";
echo "</td></tr>";
echo "<tr align=center><td height=8></td></tr>"; //여백
echo "<tr align=center><td><a href='{$list[$i][href]}'>$subject</a></td></tr>"; // 제목
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
if ($is_checkbox) {
echo "<tr align=center><td>$checkbox</td></tr>";
}
echo "<tr align=center><td height=20></td></tr>"; //여백
echo "</table>";
echo "</td>";
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
wr_10 에 입력된 값이 있을경우만 노출하고 싶은데
어떻게 수정해야 되나요?
댓글 전체

if($list[$i][wr_10]){
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
}
이렇게 한번 해보세요
echo "<tr align=center><td class=small><font color=#ff0066><b>".number_format($list[$i][wr_10])."원</b></font></a></td></tr>"; // 가격
}
이렇게 한번 해보세요
네 감사합니다 이렇게 하니 되네요 ^^