php - Problem displaying the mysql content in Paragraphs -


I insert a question (which may be some paragraph) in a SQL table using php, Displaying on a webpage.

But when I display a question, its formatting loses, I mean that it will show the whole question in just one paragraph, even before you were many paragraphs.

  & lt; Td width = \ "700px \" bgcolor = \ "# EAD57F \" & gt; Font color = \ "# 4A2Ab \" & gt; Question: & lt; / Font & gt; & Lt; Font color = \ "# 5E450B \" & gt; "$ Line2 ['question']." & Lt; / Font & gt; & Lt; / Td> $ / Row2 ['question'] -> My question is that I am getting the SELECT query from my SQL table by running. 

So if I post something like this: a SDF

In my input box

the output looks like this: asdf

How should I solve it?

The best lyrics

Do you store them as plain text, Or are they in HTML tags? If they are stored in plain text, you'll need them & lt; Pre & gt; To keep the space safe, tags or something equivalent, you can encode in HTML, & lt; P & gt; Where tags and such are necessary, but it is easy to get complicated and wrong.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -