DB 로그인을 utf8이 아니라 utf8mb4로 변경

This commit is contained in:
2018-04-01 00:35:35 +09:00
parent 3ea95da4a6
commit 0f97ae8da9
6 changed files with 8 additions and 21 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ namespace sammo;
function MYDB_connect($host, $id, $pw) {
$conn = mysqli_connect($host, $id, $pw);
mysqli_query($conn, 'set names utf8');
mysqli_query($conn, 'set names utf8mb4');
return $conn;
}