에러가 나요 ㅠㅠ 정보
에러가 나요 ㅠㅠ본문
select wr_id, wr_datetime, wr_3, wr_4, wr_5, wr_6, wr_7, wr_8, wr_16 from g4_write_miz04_01 where mb_id = 'admin' and substr(wr_datetime,1,10)>='2011-02-17' order by wr_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 '(wr_datetime,1,10)>='2011-02-17' order by wr_id desc' at line 1
error file : /admin/bbs/write_online.php
라고 에러가 나오는데요 ㅠㅠ
<?
$bo_table_00 = "miz04_01";
$f_date00_00 = $f_date00-7;
$f_year00_00 = substr($f_date00_00,0,4);
$f_mon00_00 = substr($f_date00_00,4,2);
$f_day00_00 = substr($f_date00_00,6,2);
$f_date00_01 = $f_year00_00."-".sprintf("%02d",$f_mon00_00)."-".$f_day00_00;
$sql = " select wr_id, wr_datetime, wr_3, wr_4, wr_5, wr_6, wr_7, wr_8, wr_16 from $g4[write_prefix]$bo_table_00 where mb_id = '$member[mb_id]' and substr(wr_datetime,1,10)>='$f_date00_01' order by wr_id desc";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
if($total_count) {
?>
이부분이 잘못된거는 같은데 어디가 잘못된건지 ㅠㅠ
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 '(wr_datetime,1,10)>='2011-02-17' order by wr_id desc' at line 1
error file : /admin/bbs/write_online.php
라고 에러가 나오는데요 ㅠㅠ
<?
$bo_table_00 = "miz04_01";
$f_date00_00 = $f_date00-7;
$f_year00_00 = substr($f_date00_00,0,4);
$f_mon00_00 = substr($f_date00_00,4,2);
$f_day00_00 = substr($f_date00_00,6,2);
$f_date00_01 = $f_year00_00."-".sprintf("%02d",$f_mon00_00)."-".$f_day00_00;
$sql = " select wr_id, wr_datetime, wr_3, wr_4, wr_5, wr_6, wr_7, wr_8, wr_16 from $g4[write_prefix]$bo_table_00 where mb_id = '$member[mb_id]' and substr(wr_datetime,1,10)>='$f_date00_01' order by wr_id desc";
$result = sql_query($sql);
$total_count = mysql_num_rows($result);
if($total_count) {
?>
이부분이 잘못된거는 같은데 어디가 잘못된건지 ㅠㅠ
( 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 = '183520' 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