i have a problem when i insert some articles which includes paragraph to database at the time of retrieval it display article but without paragraph. so it look like dirty writing on the page. so is there any trick or code for save article with paragraph & at time of display it shows as it is.
+1
A:
HTML ignores carriage returns and collapses multiple spaces. You have to insert the appropriate tags, such as <br>
. Have a look at nl2br().
Álvaro G. Vicario
2010-08-10 08:10:52
Beat me to it. This dude is correct ;)
Liam Spencer
2010-08-10 08:12:46
ya but at the output it shows <br> tagso in output article display with <br>,which look like error on page
Pratikg88
2010-08-10 08:18:12
Pratikg88
2010-08-10 08:38:40