그룹 관리자로 로긴후 관리설정에서 "그룹관리"메뉴를 클릭하면 다음과 같은 에러

그누 2.63 에서..
최고 관리자가 지정한 "그룹 관리자"로 로긴후 관리설정에서 "그룹관리"메뉴를 클릭하면 다음과 같은 에러가 발생합니다.
참고로 아래 경로에 테스트아이디를 그룹관리자로 세팅해 놓았습니다.
http://www.phosay.com/
아이디: test 비번: 1111 입니다.
조언 부탁드립니다.
---------------
에러내용

select * from gb_group where gr_admin = 'test' where (1) order by gr_id asc limit 0, 10
1064 : You have an error in your SQL syntax near 'where (1) order by gr_id asc limit 0, 10 ' at line 3
---------------

또하나는 브라우저 인코딩을 '자동선택'으로 설정하고 로그인하면 인코딩이 자꾸 서유럽어로 돌아가는데..
(±×´©´Ô ȯ¿µÇÕ´Ï´Ù. A (Point : 500Á¡) ·Î±×¾Æ¿ô | ÂÊÁö(0) | Á¤º¸¼öÁ¤ | ȸ¿øÅ»Åð )

새로고침 하면 제대로 되고..  
(그누님 환영합니다. A (Point : 500점) 로그아웃 | 쪽지(0) | 정보수정 | 회원탈퇴)
홀린것 같습니다.?!
|

댓글 4개

잘됩니다!!
대단히 감사합니다.
꾸뻑^)^^(^
오타가 있었네요.

$sql_search = " where (1) ";
if ($is_admin == 'group') {
$sql_search .= " and (gr_admin = '$member[mb_id]') ";
}

이렇게 수정해 주세요.
빠른 답변 감사합니다.
수정후 다시 아래와 같은 에러가 발생합니다.
select count(*) from gb_group and (gr_admin = 'test') where (1) order by gr_id asc

1064 : You have an error in your SQL syntax near 'and (gr_admin = 'test') where (1) order by gr_id asc ' at line 1
조언부탁드립니다.
_admin/grouplist.php 를 아래와 같이 수정해 주십시오.

<?
include "lib.php";

$sql_common = " from $cfg[table_group] ";

$sql_search = " where (1) ";
if ($is_admin == 'group') {
$sql_common .= " and (gr_admin = '$member[mb_id]') ";
}

if ($stext) {
$sql_search .= " and ( ";
switch ($sselect) {
case "gr_id" :
case "gr_admin" :
$sql_search .= " ($sselect = '$stext') ";
break;
default :
$sql_search .= " ($sselect like '%$stext%') ";
break;
}
$sql_search .= " ) ";
}

if (!$ssort) {
$ssort = "gr_id";
$sorder = "asc";
}
$sql_order = " order by $ssort $sorder ";

$sql = " select count(*) $sql_common $sql_search $sql_order ";
$row = sql_fetch_array($sql);
$total_count = $row[0];

$rows = $list_rows;
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함

$sql = " select *
$sql_common
$sql_search
$sql_order
limit $from_record, $rows ";
$result = sql_query_error($sql);

$listall = "<a href='$PHP_SELF'>처음</a>";

include "head.php";
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 625
&&nbsp;&nbsp;
22년 전 조회 683
22년 전 조회 515
22년 전 조회 613
&&nbsp;&nbsp;
22년 전 조회 601
22년 전 조회 609
22년 전 조회 646
22년 전 조회 686
22년 전 조회 612
22년 전 조회 689
22년 전 조회 586
22년 전 조회 604
22년 전 조회 753
22년 전 조회 807
22년 전 조회 561
22년 전 조회 604
22년 전 조회 540
22년 전 조회 704
22년 전 조회 530
22년 전 조회 642