RE: newbie question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
I'm developing my first php mysql site and have hit a stumbling block  
regarding how text is being returned out of the database.

This is the code that I'm using on the display page. It is displaying  
the returned text as one long paragraph, instead of mulitiple
paragraphs:

<p><?php echo $row_GetWritings['Writings_Text']; ?></p>
---------------
This block of code is from the CMS edit page which is correctly  
displaying the text as multiple paragraphs:

<td><textarea name="Writings_Text" cols="50" rows="5"><?php echo
$row_GetWritings['Writings_Text']; ?></textarea>
          </td>
--------------------

The only difference is the textarea tag from the form. What am I  
missing?

I've looked through numerous books and dozens of web pages without  
finding anything that makes sense to me. Lots of references to n12br  
which I have no idea how to implement.
[/snip]

Read this http://www.php.net/nl2br

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux