$str = ""; $exists = false; $depth2_ca_id = substr($ca_id, 0, 2); $sql = " select ca_id, ca_name from $g4[yc4_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); $str .= "
| "; while ($row=sql_fetch_array($result)) { if (preg_match("/^$row[ca_id]/", $ca_id)) $span = ""; else $span = ""; $str .= "{$span}$row[ca_name] "; $exists = true; } $str .= " |
![]() |
![]() |
|
![]() |
![]() |