Re: PHP / MySQL Guestbook
| From: | George Nicolae | Date: | Fri, 30 Aug 2002 09:57:38 +0000 |
| Subject: | Re: PHP / MySQL Guestbook | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15598@lists.php.net to get a copy of this message | ||
Or...
after you make the query
echo nl2br(myrow["message"]);
I recommend the first solution...(it's more faster)
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Andreas Esser" <andreas@neo-planet.de> wrote in message
news:20020829175346.60138.qmail@pb1.pair.com...
> 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
>
>
>
>