| | |
Keeping line breaks when pulling text from a database
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi guys
I've got a database with a table that stores paragraphs of text. What happens at the moment is that when I pull the text from the database and display it on the page all the line breaks are missing. I'd like to keep the line breaks. I've checked my database and I can see the line breaks there.
Is there any php code that will allow me to keep the line breaks?
I've got a database with a table that stores paragraphs of text. What happens at the moment is that when I pull the text from the database and display it on the page all the line breaks are missing. I'd like to keep the line breaks. I've checked my database and I can see the line breaks there.
Is there any php code that will allow me to keep the line breaks?
This user has a spatula. We don't know why, but we are afraid.
![]() |
Other Threads in the PHP Forum
- Previous Thread: Using Headers and Sessions Continued...
- Next Thread: help
Views: 693 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






