dungvuhong Posted June 19, 2006 Share Posted June 19, 2006 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 Quote Link to comment Share on other sites More sharing options...
poirot Posted June 19, 2006 Share Posted June 19, 2006 nl2br:[a href=\"http://www.php.net/nl2br\" target=\"_blank\"]http://www.php.net/nl2br[/a] Quote Link to comment Share on other sites More sharing options...
dungvuhong Posted June 19, 2006 Author Share Posted June 19, 2006 [!--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, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.