The code in the data is read, and the result is executed. Solution Solutions

Source: Internet
Author: User
The code in the data is read, and the result is executed.
I inserted the following data into the MySQL database using insert:
for (int i=0;i
After success, I am in MySQL in the Text Type field, the encoding type is UTF8_UNICODE_CI
It's stored like this.
for (int i=0;i
, my intention is to show this as text, (not execute this code, just show it.) )

As a result, PHP is a for loop, and the display is messy.


Ps
Insert {System.out.println (Dst[i]) into the database;}
Read, and the display is normal.
If you insert a for (int i=0;i) into the DB
, it is not normal.

How to do?


------Solution--------------------
This is java,php do not know how to parse the execution, in addition, MySQL does not support this for loop, do not know what you say the display is disorderly what is the situation

  • 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.