Okay, I've encountered this little problem. I have a site, a MySQL Database, and I have a script that makes new tables with a textbox... This script is basically for News.
Now, basically, if you do it without anything and you submit a big long text to a database without any <br>'s or <p>'s and then want to show it through your website, it will just be a big long text. Now, I don't know what the right function is for PHP to automatically place in <br>'s and such to make it a paragraph sentance...
Can someone help?
P.S.- Here is what mine look like without me putting in HTML Tags:
(I didn't write this)
Quote:
|
"WASHINGTON--The U.S. Senate on Thursday voted unanimously to slap restrictions on a controversial Pentagon data-mining program that critics say would amount to a domestic spying apparatus. By unanimous consent, the Senate inserted a moratorium on the program into a massive spending bill, which was approved by a 69-29 vote late Thursday.The vote represents an unusual triumph of privacy concerns over the Bush administration's arguments that the Pentagon's Total Information Awareness (TIA) program would be useful for national security. If fully implemented, TIA would link databases from sources such as credit card companies, medical insurers and motor vehicle agencies in hopes of snaring terrorists..." [news.com]
|
I want it to be in paragraph form though WITH PHP ADDING THE <p>'s AND <br>'s FOR ME! like this:
Quote:
"WASHINGTON--The U.S. Senate on Thursday voted unanimously to slap restrictions on a controversial Pentagon data-mining program that critics say would amount to a domestic spying apparatus. By unanimous consent, the Senate inserted a moratorium on the program into a massive spending bill, which was approved by a 69-29 vote late Thursday.
The vote represents an unusual triumph of privacy concerns over the Bush administration's arguments that the Pentagon's Total Information Awareness (TIA) program would be useful for national security. If fully implemented, TIA would link databases from sources such as credit card companies, medical insurers and motor vehicle agencies in hopes of snaring terrorists..." [news.com]
|