mysqli - ״ ϱ (ڵ)

Ҵ   
   ȸ 8298   õ 0     õ 0    

(기존방식)

 

    $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 type='text/javascript'> alert('DB 접속 오류'); </script>");

 

(mysqli 방식)

 

// 불당팩 - MySQLi 접속
$mysqli_db = mysqli_connect($mysql_host, $mysql_user, $mysql_password, $mysql_db);
if (!$mysqli_db) {
    die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script type='text/javascript'> alert('MySQLi DB 접속 오류'); </script>");
}

// mysqli의 설정 문자셋은 euc-kr이 아니라 euckr, utf-8이 아니라 utf8이라서 '-'를 없애줘야 합니다.
mysqli_set_charset($mysqli_db, str_replace('-', '', $g4[charset]));

- opencode.co.kr -


Page 2/28
2015-10   7126   Ҵ
2015-10   7035   Ҵ
2015-10   6816   Ҵ
2015-10   6680   Ҵ
2015-10   89187   Ҵ
2015-10   7298   Ҵ
2015-10   6894   Ҵ
2015-10   7456   Ҵ
2015-09   7112   Ҵ
2015-09   8709   Ҵ
2015-09   8299   Ҵ
2015-09   7919   Ҵ
2015-09   87465   Ҵ
2015-09   85494   Ҵ
2015-09   88783   Ҵ
2014-06   139271   Ҵ
2014-04   12018   Ҵ
2014-04   11305   Ҵ
2014-04   11635   Ҵ
2014-03   16492   Ҵ