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 ?> Link to comment https://forums.phpfreaks.com/topic/130877-mailing-system-problem/ Share on other sites More sharing options...
MemphiS Posted November 10, 2008 Author Share Posted November 10, 2008 ??? Link to comment https://forums.phpfreaks.com/topic/130877-mailing-system-problem/#findComment-686501 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.