The code in the data is read and the result is executed. Solution
Source: Internet
Author: User
The code in the data is read and the result is executed. I used insert to insert the following data into the mysql database: for (int & nbsp; I = 0; I & lt; dst. length; I ++) {& nbsp; system. out. after println (dst [I]); & nbsp;} succeeds, I read the code in mysql & nbs and the result is executed.
I used insert to insert the following data into the mysql database:
For (int I = 0; I After success, in the text field of mysql, the encoding type is utf8_unicode_ci
Yes.
For (int I = 0; I , I meant to display the cursor as text (not to execute this code, but to display it .)
As a result, php is treated as a for loop, and the display is messy.
PS
If {system. out. println (dst [I]);} is inserted into the database,
Read, and the display is normal.
If you insert for (int I = 0; I Then, it is not normal.
What should I do?
------ Solution --------------------
This is Java, PHP does not know how to parse and execute, and mysql does not support this for loop.
All displayed are messyWhat is the situation?
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.