try this way:
$db = mysql_connect($host, $user, $passwd); mysql_select_db($dbName, $db); $result = mysql_query("select * from gueastbook", $db); while($myrow = mysql_fetch_array($result)) { echo nl2br($myrow[message]); } ----- Original Message ----- From: Andreas Esser To: [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 1:51 PM Subject: [PHP-WIN] PHP / MySQL Guestbook hi, i have written a php guestbook using a mysql database to store and recall the entries that where typed in by the visitor. there is a formular with several fields like "name", "email" and "message". here´s the problem: the visitor types some message into the message field, i.e.: " hello, how are you today? yours michael " the typed message should now be written into the database and when the visitor click on the button "see all entries" the message should be displayed exactly the same than typed in. it works, except the wordwrap. i´ve edited my <form> - tag and added the expression " wrap=physical ". but this doesn´t work. how can i manage that the wordwrap information is displayed correctly in my database request?? i hope that some of you guys can help me with this greetz andreas -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php