쿼리를 로그에서 한줄로 보이도록 수정

This commit is contained in:
gnuboard
2013-06-21 18:15:51 +09:00
parent 98f71668d8
commit 6d0c3a9a15
11 changed files with 32 additions and 78 deletions

View File

@ -4,11 +4,7 @@ $exists = false;
$depth2_ca_id = substr($ca_id, 0, 2);
$sql = " select ca_id, ca_name from {$g4['shop_category_table']}
where ca_id like '${depth2_ca_id}%'
and length(ca_id) = 4
and ca_use = '1'
order by ca_id ";
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where ca_id like '${depth2_ca_id}%' and length(ca_id) = 4 and ca_use = '1' order by ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
if (preg_match("/^{$row['ca_id']}/", $ca_id))