This is the previous section
Header ("Content-type:text/html;charset=utf-8");
?>
Username
Password
This is the Analog server section
Header ("Content-type:text/html;charset=utf-8");
$mysqli =new mysqli ("localhost", "root", "123456", "web");
$result = $mysqli->query ("select * from user where user= ' {$_post[" username "]} ');
if ($result->num_rows > 0) {
echo "User {$_post[" username "} already exists and cannot be used";
}else{
echo "User {$_post[" username "} does not exist and can be used";
}
In the browser appeared in Chinese garbled, how to solve it,,,,, thank you to the great God to help!!!!
Reply to discussion (solution)
Your server file is not UTF-8 encoded. Change to Utf-8 code should be able to.
Look at your PHP script file encoding format must be UTF8.
How do I set the server-side encoding?
Save as Utf-8 without BOM header format with editor.
should be the result of BOM header