Forums
This topic is locked
Paragraph Breaks in Long Blob
Posted 16 May 2002 10:54:19
1
has voted
16 May 2002 10:54:19 matt harris posted:
<font face='Verdana'></font id='Verdana'>Is there any way to maintain paragraph breaks in a longblob text field in mysql? I have a large amount of news information I need to store in a mySQL database and then access this by php / ultradev but it needs to be broken up by paragraphs - can I only do this as I have done in the past with <br> break tags. ?
Replies
Replied 16 May 2002 14:04:23
16 May 2002 14:04:23 Julio Taylor replied:
when you display the text in your PHP page, make sure that you add "nl2br" to the string like so:
<?php echo nl2br( $field->Fields("table.field") ?>
hope it helps
-- Julio
P.S. i killed kenny
<?php echo nl2br( $field->Fields("table.field") ?>
hope it helps
-- Julio
P.S. i killed kenny