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
Link to comment
Share on other sites

[!--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,
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.