고수님들의 질문 정보
고수님들의 질문본문
제가 포인트기능과 같은 똑같은 것을 하나더 만들어서 실제사용현황기능이라고 만들고 싶은데
여기서 보면 point_list.php 를 하나복사해서 point2_list.php
로 만들고 기존의 DB를 하나 복사해서 g4_point를 하나더 만들어서 g4_pointk 으로 했고
재가 고친부분은
$sql_common = " from $g4[pointk_table] ";
이렇게 했는데
select count(*) as cnt from where (1) order by po_id desc
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where (1) order by po_id desc' at line 3
error file : /bbs/adm/point2_list.php
이렇게 오류가 나오네요..
혹시 위의 오류가 아니더라고 포인트와 같은 메뉴를 하나더 복사해서 같은 기능을 추가하려면.. 고수님들의 도움부탁드립니다
여기서 보면 point_list.php 를 하나복사해서 point2_list.php
로 만들고 기존의 DB를 하나 복사해서 g4_point를 하나더 만들어서 g4_pointk 으로 했고
재가 고친부분은
$sql_common = " from $g4[pointk_table] ";
이렇게 했는데
select count(*) as cnt from where (1) order by po_id desc
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where (1) order by po_id desc' at line 3
error file : /bbs/adm/point2_list.php
이렇게 오류가 나오네요..
혹시 위의 오류가 아니더라고 포인트와 같은 메뉴를 하나더 복사해서 같은 기능을 추가하려면.. 고수님들의 도움부탁드립니다
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '175697' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php