메뉴에서 sql syntax near .....이건 무슨 에러입니까?? 정보
그샵 메뉴에서 sql syntax near .....이건 무슨 에러입니까??본문
CATEGORY
select * from where LENGTH(ca_id) = 3 order by ca_id
1064 : You have an error in your SQL syntax near 'where LENGTH(ca_id) = 3 order by ca_id ' at line 2
참고로 전 소스 수정만 해 본 초보입니다.
디렉토리구조는
gnu3
gnu3/0909
gnu3/bbs
gnu3/install
gnu3/lib
gnu/shop
gnu3/index.php
gnu3/head.php
gnu3/main.php
gnu3/tail.php
gnu3/shop/index.php
요렇게 디렉토리 구조입니다.
gnu3/shop/index.php 파일안에 보면 카테고리 출력하는 부분 있잖아요~~
<!-- 분류 시작 -->
<table width=100% cellpadding=0 cellspacing=0>
<tr><td height=1 background='./<?=$cfg[shop_dir]?>/img/line.gif'></td></tr>
<tr><td class='subject subjectbg ht arial' align=center>CATEGORY</td></tr>
<tr><td height=1 background='./<?=$cfg[shop_dir]?>/img/line.gif'></td></tr>
<tr>
<td>
<table width=100% cellpadding=3>
<?
// 1단계 분류만
$sql = " select * from $cfg[table_category]
where LENGTH(ca_id) = 3
order by ca_id ";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<tr><td><img src='./$cfg[shop_dir]/img/ff.gif'> <a href='./?doc=$cfg[shop_dir]/list.php&ca_id=$row[ca_id]'>$row[ca_name]</a></td></tr>";
}
?>
</table>
</td>
</tr>
</table>
<!-- 분류 끝 -->
를 카피해서
gnu3/head.php 파일에 붙여넣기를 했습니다.
그런뒤에 제 계정에서 pigya.com/gnu3/index.php 파일을 열면 맨위에 에러가 나옵니다..
우째해야 할까요 ???
[이 게시물은 관리자님에 의해 2003-11-25 10:25:19 그샵질답(으)로 부터 이동됨]
select * from where LENGTH(ca_id) = 3 order by ca_id
1064 : You have an error in your SQL syntax near 'where LENGTH(ca_id) = 3 order by ca_id ' at line 2
참고로 전 소스 수정만 해 본 초보입니다.
디렉토리구조는
gnu3
gnu3/0909
gnu3/bbs
gnu3/install
gnu3/lib
gnu/shop
gnu3/index.php
gnu3/head.php
gnu3/main.php
gnu3/tail.php
gnu3/shop/index.php
요렇게 디렉토리 구조입니다.
gnu3/shop/index.php 파일안에 보면 카테고리 출력하는 부분 있잖아요~~
<!-- 분류 시작 -->
<table width=100% cellpadding=0 cellspacing=0>
<tr><td height=1 background='./<?=$cfg[shop_dir]?>/img/line.gif'></td></tr>
<tr><td class='subject subjectbg ht arial' align=center>CATEGORY</td></tr>
<tr><td height=1 background='./<?=$cfg[shop_dir]?>/img/line.gif'></td></tr>
<tr>
<td>
<table width=100% cellpadding=3>
<?
// 1단계 분류만
$sql = " select * from $cfg[table_category]
where LENGTH(ca_id) = 3
order by ca_id ";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<tr><td><img src='./$cfg[shop_dir]/img/ff.gif'> <a href='./?doc=$cfg[shop_dir]/list.php&ca_id=$row[ca_id]'>$row[ca_name]</a></td></tr>";
}
?>
</table>
</td>
</tr>
</table>
<!-- 분류 끝 -->
를 카피해서
gnu3/head.php 파일에 붙여넣기를 했습니다.
그런뒤에 제 계정에서 pigya.com/gnu3/index.php 파일을 열면 맨위에 에러가 나옵니다..
우째해야 할까요 ???
[이 게시물은 관리자님에 의해 2003-11-25 10:25:19 그샵질답(으)로 부터 이동됨]
댓글 전체
열심히 하십시요^^
30분도 안되어서 답글이 뜨다니 너무 고맙습니다..
방금 인덱스에서는 안되어서 head.php로 옮겨서 해 보니 잘 되네요
감사합니다.
내일부터는 정말 맘대로 사이트 좀 꾸며볼수가 있겠네요~
너무 기쁩니다.....
7쟁이님 하시는일이 모두 잘 되시길 바랄께요...
방금 인덱스에서는 안되어서 head.php로 옮겨서 해 보니 잘 되네요
감사합니다.
내일부터는 정말 맘대로 사이트 좀 꾸며볼수가 있겠네요~
너무 기쁩니다.....
7쟁이님 하시는일이 모두 잘 되시길 바랄께요...
<?
/*
사용자 화면 상단과 좌측을 담당하는 페이지입니다.
상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./$cfg[bbs_dir]/gblayer.php";
include "./lib/latest.lib.php";
// 쇼핑몰
$is_shop = false;
if (file_exists($cfg[shop_dir])) {
include "./$cfg[shop_dir]/shop.lib.php";
$is_shop = true;
}
?>
head.php상단에 넣구 해보세요
/*
사용자 화면 상단과 좌측을 담당하는 페이지입니다.
상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
*/
include "./$cfg[bbs_dir]/gblayer.php";
include "./lib/latest.lib.php";
// 쇼핑몰
$is_shop = false;
if (file_exists($cfg[shop_dir])) {
include "./$cfg[shop_dir]/shop.lib.php";
$is_shop = true;
}
?>
head.php상단에 넣구 해보세요