#318 상품검색된 정보가 없는 경우 숫자를 0 이 나오도록 수정

This commit is contained in:
gnuboard
2013-11-05 17:45:06 +09:00
parent 970405b01c
commit 5c4b9a1fca

View File

@ -83,9 +83,9 @@ $total_count = $row['cnt'];
$save['it_id'][$save['cnt']] = $row['it_id']; $save['it_id'][$save['cnt']] = $row['it_id'];
$save[cnt]++; $save[cnt]++;
} }
mysql_free_result($result);
} }
mysql_free_result($result);
write_search_save($save); write_search_save($save);
function write_search_save($save) function write_search_save($save)
@ -106,7 +106,7 @@ $total_count = $row['cnt'];
?> ?>
<div class="tbl_head01 tbl_wrap"> <div class="tbl_head01 tbl_wrap">
<table> <table>
<caption><?php echo $ca_temp?><a href="./list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo $save['cnt']; ?>개</caption> <caption><?php echo $ca_temp?><a href="./list.php?ca_id=<?php echo $save['ca_id']; ?>"><?php echo $row['ca_name']; ?></a> 상품<?php echo (int)$save['cnt']; ?>개</caption>
<thead> <thead>
<tr> <tr>
<th scope="col">이미지</td> <th scope="col">이미지</td>