Jump to content

Problem with appearence text in MySQL on the site


dungvuhong

Recommended Posts

Hi all,

Does any one have problem like this:

I have one Textarea to get user's post. This Text will be saved in MySQL and look like this:

[b]
Alex Frei trifft in Dortmund für die Eidgenossen. Die Togolesen müssen jetzt Gas geben, sonst wird es nichts mehr mit dem Traum Achtelfinale. mehr

* Alexander Frei: Die Hoffnung der Eidgenossen
* Trainerporträt: Köbi Kuhn
* Kader Schweiz
* Schweiz: Mehr als Warmspielen für die EURO[/b]

But when I used PHP to get this content to appear it on the website, i usually get the text like this on the website:

[b]

Alex Frei trifft in Dortmund für die Eidgenossen. Die Togolesen müssen jetzt Gas geben, sonst wird es nichts mehr mit dem Traum Achtelfinale. mehr * Alexander Frei: Die Hoffnung der Eidgenossen * Trainerporträt: Köbi Kuhn * Kader Schweiz * Schweiz: Mehr als Warmspielen für die EURO
[/b]

Can anyone suggest me the way to fix it?

Thank you very much
[!--quoteo(post=385659:date=Jun 19 2006, 10:14 AM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 19 2006, 10:14 AM) [snapback]385659[/snapback][/div][div class=\'quotemain\'][!--quotec--]
nl2br:

[a href=\"http://www.php.net/nl2br\" target=\"_blank\"]http://www.php.net/nl2br[/a]
[/quote]

Thank you very much poirot!

Nice to meet you,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.