Jump to content

MySQL and word wrap help


Guest PcGamerz13

Recommended Posts

[!--quoteo(post=352270:date=Mar 6 2006, 05:12 PM:name=PcGamerz13)--][div class=\'quotetop\']QUOTE(PcGamerz13 @ Mar 6 2006, 05:12 PM) [snapback]352270[/snapback][/div][div class=\'quotemain\'][!--quotec--]
$row[2] won't word wrap in $Message = wordwrap($row[2], 25, "<br />\n");

it shows my mail just got word wrapped
[/quote]

I'm not sure I understand.. If you look at the raw output from the program, are there <br /> tags where $row[2] is displayed? ie, is it just not displaying it in the browser?
Link to comment
Share on other sites

Using your code with

$row[2] = 'Lorem ipsum dolor sito amet, atoi consectetuer adipiscing elit, sed diam nonummy nibal as eui mode. Visit autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.';

I get

[code]Lorem ipsum dolor sito
amet, atoi consectetuer
adipiscing elit, sed diam
nonummy nibal as eui
mode. Visit autem vel eum
iriure dolor in hendrerit
in vulputate velit esse
molestie consequat, vel
illum dolore eu feugiat
nulla facilisis at vero
eros et accumsan et iusto
odio dignissim qui
blandit praesent luptatum
zzril delenit augue duis
dolore te feugait nulla
facilisi.[/code]

What are you expecting?
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.