물음표 뜹니다..해결좀 해주세요.. 정보
물음표 뜹니다..해결좀 해주세요..본문
http://www.genesisinc.co.kr/en/news/news.php
왜 물음표가 뜰까요~?
euc-kr버젼입니다. .
왜그런건지.. 현재 머리가 너무 지끈지끈..
ㅜㅜ
select count(*) as cnt from g4_point where mb_id = 'admin' and po_rel_table = 'board_kr' and po_rel_id = '2' and po_rel_action = '쓰기'
1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (euckr_korean_ci,COERCIBLE) for operation '='
error file : /bbs/bbs/write_update.php
이렇게 오류나요
댓글 전체

DB collation이 UTF-8로 되었을 때 비슷한 현상이 나타나던데요..
그럼 UTF-8 로 다시 깔면 괜찮다는 말씀이세요`?

http://dev.mysql.com/doc/refman/4.1/en/charset-literal.html
select count(*) as cnt from g4_point where mb_id = 'admin' and po_rel_table = 'board_kr' and po_rel_id = '2' and po_rel_action = _euckr '쓰기' euckr_korean_ci
select count(*) as cnt from g4_point where mb_id = 'admin' and po_rel_table = 'board_kr' and po_rel_id = '2' and po_rel_action = _euckr '쓰기' euckr_korean_ci

lib/common.php에서 다음 부분 검토해 보세요.
// DB 연결
function sql_connect($host, $user, $pass)
{
global $g4;
if (strtolower($g4['charset']) == 'utf-8') @mysql_query(" set names utf8 ");
else if (strtolower($g4['charset']) == 'euc-kr') @mysql_query(" set names euckr ");
return @mysql_connect($host, $user, $pass);
}
// DB 연결
function sql_connect($host, $user, $pass)
{
global $g4;
if (strtolower($g4['charset']) == 'utf-8') @mysql_query(" set names utf8 ");
else if (strtolower($g4['charset']) == 'euc-kr') @mysql_query(" set names euckr ");
return @mysql_connect($host, $user, $pass);
}

저도 답변 좀 드리고 싶은데...빨리 배워야지...