답변 4개 / 댓글 1개
채택된 답변
+20 포인트
고민을 해봐도 답을 못 찾겟습니다.
메뉴에서 메뉴를 클릭하면 메뉴링크가
http://himnae.com/shop/list.php?/list.php?
이런식인데
http://himnae.com/shop/list.php?/list.php?select * from {$g5['g5_shop_category_table']} where substring(ca_id, 3, 2) = '80'
이렇게는 적용이 안되네요...
너무 모르는건가요?
답변을 작성하려면 로그인이 필요합니다.
<?php
$casql = sql_query(" select * from {$g5['g5_shop_category_table']} where substring(ca_id, 3, 2) = '20' and length(ca_id) = 4 ");
for ($i=0;$row=sql_fetch_array($casql);$i++) {
echo $row['ca_name'].'<br>';
}
?>
위 코드를 연습 삼아 넣어보세요.