<> Insert in php cannot be used.

Source: Internet
Author: User
& Lt; help & gt; insert in php cannot be used, but the SQL code can run normally after being copied to mysql. what's the problem? please help me. don't wrap it and see if there are spaces to remove, five yards without truth, all the special fields are caused by '. the solution is Encoding. the editor ansi encoding, database UTF-8 encoding, and the code has Chinese characters. I don't know why. <Help> Insert in php cannot be used
However, copying the SQL code to mysql can run normally. what's the matter?

------ Solution --------------------
Don't wrap the line and check for space.
------ Solution --------------------
Five yards without truth
------ Solution --------------------
All special fields are caused'
------ Solution --------------------
Discussion

The encoding problem is solved. the editor ansi encoding, database UTF-8 encoding, and the code has Chinese characters. I don't know why it cannot be referenced through:

Five yards without truth

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.