I'm afraid I'm too much a newbie to know how to incorporate that function. Can you tell me where you would use it in the following code, which fetches and displays the data?
The NewsStory field is the one with the line breaks in question.
<?php if ( isset($readstory) ): ?><?php
// Request the text of the specific story
$result = mysql_query(
"SELECT NewsStory, NewsDo, NewsDate, NewsLoc FROM News
WHERE NewsID='$readstory'");
if (!$result) {
echo("<P>Error performing query: " .
mysql_error() . "</P>");
exit();
}
// Display the text of the story in a paragraph
while ( $row = mysql_fetch_array($result) ) {
echo("<P>" . "<b>" . $row["NewsDate"] . "<br>"
. $row["NewsLoc"]
. "</b></P>");
echo("<P>" . $row["NewsStory"] . "</P>");
echo("<P>" . "<b>What you can do: </b>" . $row["NewsDo"] . "</P>");
}
?>