How can I save the text control format to MYSQL? if I do not use the editor plug-in, how can I save the text control format to MYSQL? I want to save the following textbox1.text content to MYSQL: 'Saved format '. "\ n ". the 'control symposition' is saved in the format of & nbsp; 'when it is saved to MYSQL. "\ n ". control symbol '& nbsp; how to save the text control format to MYSQL
How can I save the text control format to MYSQL without using the editor plug-in?
To save the following textbox1.text content to MYSQL: 'Save format '. "\ n". 'control symposition'
When saved to MYSQL, it will be: 'Saved format. "\ n". control symbol'
An entire string. The line break "\ n" in the middle is invalid. how can I make "\ n" saved in MYSQL and read it in php? Share:
------ Solution --------------------
Can you view the line feed in the command line query? you can view the source code on the page.
------ Solution --------------------
Reference:
This is the case now.
Http://www.asnewmart.com/test.php
Understand what you mean
Try this: before saving $ str = htmlspecialchars ($ str );
Output nl2br ($ str) when reading );
You are not sure whether the first step requires the second step.
I will write a demo later. you can try it first.
------ Solution --------------------
\ N is the line feed of the text. you must view the source code to see it.
To display line breaks on the html page, use the nl2br () function to process them.