MemphiS Posted October 31, 2008 Share Posted October 31, 2008 Just finishing off a few problems i found in my mailing system and one im having trouble resolving is;when a user receives a letter and then replys it is creating extra <br /> So after a few responces back and foward the orginal letter starts to look like the following example: From [b]userA[/b] on date Good Thanks you? ------------------------- From [b]userB[/b] on date hey how are you? ------------------------- From [b]userA[/b] on date Hello And in the db each of those gaps come out as <br /> <br /> <br /> <br /> <br /> <br /> Hello You get the drift: Heres my code: <?php if (!empty($idm)){ if ($responRow>0){ $lastwrote = str_replace("<br />","\r\n",$retmymail[1]); echo("\r\n___________________________________\r\n[b]$retmymail[0] Wrote...[/b]\r\n$lastwrote"); } } // $retmymail[1] = letter from the db ?> Quote Link to comment Share on other sites More sharing options...
MemphiS Posted November 10, 2008 Author Share Posted November 10, 2008 ??? 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.