echo question
| From: | Louis Brooks | Date: | Sun, 20 May 2001 00:01:25 +0000 |
| Subject: | echo question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53570@lists.php.net to get a copy of this message | ||
Hi All:
I need to print out several paragraphs of information stored in a MySql field to a web page. To do this I am using:
$db = mysql_connect("localhost", "dbase", "password");
mysql_select_db("dbase",$db);
$sql = "SELECT update FROM members WHERE username = 'Don'";
$query = mysql_query($sql);
$results = mysql_fetch_array($query);
$text = $results["update"];
echo "$text";
but it does not insert the returns between the paragraphs. I think I need to tell it to insert a <p> in place of the return. There is a way to do this as I have seen it on the PHP site when I was searching for something else. Of course now that I need it I can't find the example. Can someone please help me figure this out?
Thank you,
Louis Brooks