|
|
|
17년 전
|
조회 814
|
|
|
천하냥이
|
17년 전
|
조회 837
|
|
|
|
17년 전
|
조회 767
|
|
|
|
17년 전
|
조회 918
|
|
|
|
17년 전
|
조회 793
|
|
|
|
17년 전
|
조회 786
|
|
|
|
17년 전
|
조회 763
|
|
|
|
17년 전
|
조회 755
|
|
|
|
17년 전
|
조회 957
|
|
|
|
17년 전
|
조회 1,152
|
|
|
천하냥이
|
17년 전
|
조회 839
|
|
|
|
17년 전
|
조회 837
|
|
|
|
17년 전
|
조회 1,853
|
|
|
|
17년 전
|
조회 1,554
|
|
|
|
17년 전
|
조회 1,059
|
|
|
|
17년 전
|
조회 853
|
|
|
|
17년 전
|
조회 774
|
|
|
|
17년 전
|
조회 744
|
|
|
|
17년 전
|
조회 1,687
|
|
|
|
17년 전
|
조회 1,272
|
댓글 5개
mysql_query("SET NAMES euckr");
...
db접속코드 다음에 넣어보세요~
.....
if (file_exists("$g4[path]/$dbconfig_file"))
{
if (is_dir("$g4[path]/install")) die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('install 디렉토리를 삭제하여야 정상 실행됩니다.'); </script>");
include_once("$g4[path]/$dbconfig_file");
$connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = sql_select_db($mysql_db, $connect_db);
if (!$select_db)
die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('DB 접속 오류'); </script>");
}
.....
.....
if (file_exists("$g4[path]/$dbconfig_file"))
{
if (is_dir("$g4[path]/install")) die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('install 디렉토리를 삭제하여야 정상 실행됩니다.'); </script>");
include_once("$g4[path]/$dbconfig_file");
$connect_db = sql_connect($mysql_host, $mysql_user, $mysql_password);
$select_db = sql_select_db($mysql_db, $connect_db);
이부분에 추가하면 되나요.
mysql_query("SET NAMES utf8");
if (!$select_db)
die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('DB 접속 오류'); </script>");
}
.....