write_update.skin.php 질문 좀 드립니다... 정보
write_update.skin.php 질문 좀 드립니다...본문
이온프리님의 멀티카테고리를 사용하려는데요...
http://www.sir.co.kr/bbs/board.php?bo_table=g4_plugin&wr_id=321&page=3
카테고리를 잘라서 최신글에 나오게 하려고 꼼수를... ㅡㅡ;;;
write_update.skin.php 에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
include "$g4[path]/skin/multi_category/lib.php";
$str = join(MC::getNowCategories($write['ca_name']));
$sido = substr($str, 0,4);
$gugun = substr($str, 4,6);
$subj = substr($str,10,4);
$part = substr($str,14,4);
$sex = substr($str,18,4);
$wr_8 = $sido." ".$subj;
$sql8 = "update $write_table set wr_8 = '$wr_8' where wr_id = '$wr_id' ";
sql_query($sql8);
?>
요렇게 해서 최신글 스킨에 <?= $list[$i][wr_8?> 하고 나타내면
안나옵니다... 그런데 글 수정한번 하고 나면
나옵니다... ㅠ.ㅠ
그러니까 한번에 안나오고 쓰고나서 수정 해야 나오는군요... 어떻게 해야되나요... ㅡ.ㅡ
http://www.sir.co.kr/bbs/board.php?bo_table=g4_plugin&wr_id=321&page=3
카테고리를 잘라서 최신글에 나오게 하려고 꼼수를... ㅡㅡ;;;
write_update.skin.php 에
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 자신만의 코드를 넣어주세요.
include "$g4[path]/skin/multi_category/lib.php";
$str = join(MC::getNowCategories($write['ca_name']));
$sido = substr($str, 0,4);
$gugun = substr($str, 4,6);
$subj = substr($str,10,4);
$part = substr($str,14,4);
$sex = substr($str,18,4);
$wr_8 = $sido." ".$subj;
$sql8 = "update $write_table set wr_8 = '$wr_8' where wr_id = '$wr_id' ";
sql_query($sql8);
?>
요렇게 해서 최신글 스킨에 <?= $list[$i][wr_8?> 하고 나타내면
안나옵니다... 그런데 글 수정한번 하고 나면
나옵니다... ㅠ.ㅠ
그러니까 한번에 안나오고 쓰고나서 수정 해야 나오는군요... 어떻게 해야되나요... ㅡ.ㅡ
( 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 = '222955' 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