쿼리문을 한줄로

This commit is contained in:
gnuboard
2013-07-25 15:53:12 +09:00
parent 90dab1297d
commit 48489cf744

View File

@ -33,10 +33,8 @@ include_once('./_head.php');
</thead>
<tbody>
<?php
$sql = " select a.wi_id, a.wi_time, b.*
from {$g4['shop_wish_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.mb_id = '{$member['mb_id']}'
order by a.wi_id desc ";
$sql = " select a.wi_id, a.wi_time, b.* from {$g4['shop_wish_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id ) ";
$sql .= " where a.mb_id = '{$member['mb_id']}' order by a.wi_id desc ";
$result = sql_query($sql);
for ($i=0; $row = mysql_fetch_array($result); $i++) {