The data submitted by POST is incorrect !. The data submitted by POST is incorrect! My system is win7. after the environment is configured and tested, the character problem occurs, garbled characters, and a mess occurs later. now the character in
First of all, the MySQL character set problem. Windows can be modified by modifying the My.ini in the
PHP code
Copy CodeThe code is as follows:
[MySQL]
Default-character-set=utf8//Client's default character set
[Mysqld]
Default-character-set=utf8
PHP queries mysql and Chinese data. the same data added in different ways shows different hi. let me first talk about my situation. New to php. ---- Symptom output page, I have added & lt; metacharset & quot; UTF-8 & quot; & gt;, when I am querying
Mysql.php get the records in the database, complete personal experience Summary, for reference only!
/**
*php+mysql Database Basic functions
*http://blog.csdn.net/yown
*/
############################################
#获取序列ID
########################
The problem is, rookie I inserted data on MySQL Workbench, and then use PHP to extract the data display, but the browser to see the Chinese garbled problem.
PHP is encoded on a notepad++ utf-8 without a BOM.
Then the charset of the database is this:
I am using PHP database connection, when the data is stored in the problem, but with PHP to the data encoding method has been modified,
===========================================
Iconv ("Utf-8", "GBK", $array [2])
===================================
Let's talk about the character set of MySQL. In Windows, you can modify
PHP codeCopy codeThe Code is as follows: [mysql]
Default-character-set = utf8 // default character set of the Client[Mysqld]
Default-character-set = utf8 // default character
Mysql.php get the records in the database, complete personal experience Summary, for reference only!
/**
*php+mysql Database Basic functions
*http://blog.csdn.net/yown
*/
############################################
#获取序列ID
#########################
The code is as follows:Shopping Cart Page: easy to buy network-home Shopping cart x Pieces Login Register Message Admin Home Books Department store Brand Promotions Music Film Kids Anime Fiction Foreign Languages Digital camera
PHP Chinese garbled is one of the common problems in PHP development. PHP Chinese garbled sometimes occurs in the Web page itself, some generated in the process of MySQL interaction, and sometimes related to the operating system. Here's a
database links and selection and coding$link =mysql_connect ("localhost", "root", "123456") or Die ("Database connection Failed". Mysql_error ()); Connecting to a database$sel =mysql_select_db ("login", $link) or Die ("Database selection failed".
http://blog.csdn.net/martinkro/article/details/53524741 Character set concepts in MySQLThere are two concepts in the MySQL character set, one is "Character set (character set)" and the other is "collations".1.1 CollationsCollations translated into
In Linux, if I use the mysql graphics client, I feel that Emma is a good tool. It is better than mysql's own Mysql Query Browser, and the most intolerable thing is that Mysql Query Browser will crash in Ubuntu 11.10. Emma is quite good, but emma is
Post submitted data Error!
My system is win7, just configure the environment after the test when the character of the problem, garbled, and then messed up a pass, now MySQL inside the field character is "Utf8_general_ci", and then in the PHP
The most basic PHP classification query Program, PHP classification query program
the initial class of PHP classification query programPublic"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
Php connection to the SQL file encoding problem. The last time I installed it, there was another problem. I used php to solve the problem. when I saved the data, I encountered a problem, however, the data encoding method was modified using php,
=====
PHP query MySQL, Chinese data, different ways to add the same data unexpectedly display different
Hi
Let me start with my situation. A novice in PHP.
– Phenomenon
In the output page, I have added the
, I also added a query to MySQL.
mysql_query ("
MySQL encoding settings
1. Edit the MySQL configuration file
MySQL configuration file in Windows is generally in the system directory or in the MySQL installation directory named my. ini, you can search, Linux is usually/etc/My. CNF
-- Add a
I. Review of the ContentTo implement a static approach:True static: Use the OB cache mode, replace with template,Ob_start (); Open o B CacheOb_clean (); Clears the data inside the O B cache and does not close the OB cache.Ob_end_clean ();//Clears
I. Review of the ContentTo implement a static approach:True static: Use the OB cache mode, replace with template,Ob_start (); Open o B CacheOb_clean (); Clears the data inside the O B cache and does not close the OB cache.Ob_end_clean ();//Clears
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.