Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[버그/완료] 회원가입시 한글 깨짐 #64

Open
hjoon0510 opened this issue Nov 25, 2018 · 2 comments
Open

[버그/완료] 회원가입시 한글 깨짐 #64

hjoon0510 opened this issue Nov 25, 2018 · 2 comments

Comments

@hjoon0510
Copy link
Collaborator

image

@hjoon0510
Copy link
Collaborator Author

#19 solution

@hjoon0510
Copy link
Collaborator Author

해결코드

git diff
diff --git a/webapp/user_signup_do.php b/webapp/user_signup_do.php
index 7758ecc..fc192df 100644
--- a/webapp/user_signup_do.php
+++ b/webapp/user_signup_do.php
@@ -2,6 +2,7 @@
 require("./menu2.php");
 include('webapp_config.php');
 $mysqli=mysqli_connect($db_host,$db_user,$db_pass,$db_name);
+mysqli_query($mysqli, "SET NAMES utf8");
 ?>

 <?php
@@ -28,6 +29,7 @@ if($id==NULL || $pw==NULL || $name==NULL || $email==NULL) //
 include('webapp_config.php');

 $mysqli=mysqli_connect($db_host,$db_user,$db_pass,$db_name);
+mysqli_query($mysqli, "SET NAMES utf8");

 $check="SELECT *from store_info WHERE id='$id'";
 $result=$mysqli->query($check);

해결후

image

@hjoon0510 hjoon0510 changed the title member error(signup) 버그/완료 회원가입시 한글 깨짐 Nov 25, 2018
@hjoon0510 hjoon0510 changed the title 버그/완료 회원가입시 한글 깨짐 [버그/완료] 회원가입시 한글 깨짐 Nov 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant