#####################################################

문제점 :: mysql 설정에서는 한글깨짐 해결했는데, php게시판 연결할때 mysql의 한글 디비 내용이 깨짐

해결 방법 :: 다음 블로그 사항을 다 설정파일에 기록하니 된다 



http://blog.naver.com/yeonnim07?Redirect=Log&logNo=130155986458


###########################################################

------------------------

한글은 잘 디비에 잘 들어가는데, 게시판에서 select 하여 표시한면 한글이 ????

이런 상태로 다 깨어짐

1. root 접속하기(디비에, 나는 우선 Bitnami 서버에서 윈도우에서 Mysql 설정함)

2. find / -name 'my*' 로 검색하면 mysql 밑에 my.cnf가 있다(윈도우에선 my.ini파일?)

3. vi   my.cnf 명령어로 파일 연다

4. 아래 내용을 입력후 저장한다음  종료한다.


[mysql]

default-character-set = utf8


[client]

default-character-set = utf8


[mysqld]

character-set-client-handshake=FALSE

init_connect="SET collation_connection = utf8_general_ci"

init_connect="SET NAMES utf8"

character-set-server = utf8

collation-server = utf8_general_ci


[mysqldump]

default-character-set = utf8

5. mysql 서비스 재시작

service mysql restart

6. mysql 접속후 status 명령어와 show variables like 'character%'; 명령어

또는 show variables like 'c%'; 명령어를 쳐서 utf8설정 확인 한뒤

테이블에 insert 를 이용해 한글 데이터 테스트 해보자..















_________________________________________________________________________

 

계속 지우 보드에서 , $_GET 변수 에러가 남 

우선 해결은 임시로 함....

내 컴퓨터 에러 메시지

--->    Notice: Undefined index: last_secret_view in

          C:\BitNami\wampstack-5.4.13-0\apache2\www\zb\list.php on line 475

해결 :: 

---> 다음 블로그 에서 참고함....

http://blog.naver.com/hhangky?Redirect=Log&logNo=20091272024


WHEN using $_POST or $_GET 사용할때 에러날 경우

Notice : Undefined index 'fields of the table' in 'path of php file being execute'

on line 'current line'

---> to avoid this error, simply test whether the fields of the table was initialized with

the function isset()


// Before using $_POST['value']

if (isset($_POST['value']))

{

     ///  Instructions  if $_POST['value']  exist

}

This type of error is notified depending on the configuration of the server

it is not notified by default as it  is considered as a minor error,

corresponding to the constant   E_NOTICE

YOU can change the types of errors reported with the error_reporting function




-------------------------------------------------------------------------------------------------





hello , 반갑습니다.

+ Recent posts