How can I save the text control format into MySQL
How can I save the text control format to MySQL without using the editor plugin?
To save the following TextBox1.Text content into MySQL: ' Saved format '. \ n "." Control symbol '
When it's saved in MySQL, it reads: ' Saved format. ' \ n ". Control symbol '
An integer string. The middle of the line break "\ n" is not valid, how can "\ n" in MySQL saved after the read with PHP and the effect of a newline?
Share to:
------Solution--------------------
You can see the line under the command line, the page to see the source to see.
------Solution--------------------
References:
This is the case now.
http://www.asnewmart.com/test.php
I know what you mean.
Try this: $str= htmlspecialchars before deposit ($STR);
Read the output nl2br ($STR);
Not sure whether the first step requires a second step is the key
I'll write a demo later, you can try it first.
------Solution--------------------
\ n is the text line, to see the source code to see.
To display line breaks on an HTML page, it's good to use the NL2BR () function.