"."/> ".">

Home  >  Article  >  Database  >  How to get the value of mysql text

How to get the value of mysql text

藏色散人
藏色散人Original
2020-11-03 09:20:562338browse

Mysql text value implementation method: first use the "htmlspecialchars(content);" method to convert the content into html tags; then use "nl2br(htmlspecialchars(content));" to convert the newline into "
" is all.

How to get the value of mysql text

Recommended: "mysql video tutorial"

Read the value of the mysql database text (text) field

Method 1:

The content system needs to be converted when typing

htmlspecialchars(内容);//转化为html标签
nl2br(htmlspecialchars(内容));//换行转换为<br/>

Method 2:

You can use the online editor fck or kineditor when typing, you can do it by yourself Search it on Baidu

The above is the detailed content of How to get the value of mysql text. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn