In Windows 8, databases cannot be written to environments built using WAMPSERVER. execute the mysql_query () function in the PHP file to write a data entry. a record is added to the table, and the primary key id is increased by 1, however, no data is written to other fields. the same script code is normally written in win7. what is the table structure? My databases in Windows 8 cannot be written.
In an environment built using WAMPSERVER, execute the mysql_query () function in the PHP file to write a piece of data. a record is added to the table, and the primary key id is increased by 1, but no data is written to other fields, the same script code is normally written in win7
------ Solution --------------------
What is the table structure like?
I guess it may be about character encoding.
------ Solution --------------------
First, SQL statements and PHP are platform-independent. It can only be your database table structure, or the configuration of mysql is different
It is recommended that you paste the SQL statement SHOW CREATE TABLE 'table name'; execution result and insert statement.
------ Solution --------------------
It is generally a permission issue or a firewall issue.
------ Solution --------------------
Mysql_query ("insert into wenzhang (title, body) values ('title $ I ', 'content $ I')") or die (mysql_error ());
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service