Jump to content


MySQL and word wrap help


  • Please log in to reply
9 replies to this topic

#1 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 06 March 2006 - 10:21 AM

Fixed

#2 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 06 March 2006 - 08:25 PM

Deleted

#3 XenoPhage

XenoPhage
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 06 March 2006 - 09:10 PM

Are the breaks not being added to the HTML output?
--
[a href=\"http://blog.godshell.com\" target=\"_blank\"]XenoPhage[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.[/quote]

#4 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 06 March 2006 - 10:12 PM

Deleted

#5 XenoPhage

XenoPhage
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 06 March 2006 - 10:17 PM

[!--quoteo(post=352270:date=Mar 6 2006, 05:12 PM:name=PcGamerz13)--][div class=\'quotetop\']QUOTE(PcGamerz13 @ Mar 6 2006, 05:12 PM) View Post[/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?
--
[a href=\"http://blog.godshell.com\" target=\"_blank\"]XenoPhage[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.[/quote]

#6 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 06 March 2006 - 10:52 PM

Deleted

#7 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 06 March 2006 - 11:31 PM

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

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.

What are you expecting?
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#8 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 06 March 2006 - 11:41 PM

Deleted

#9 Guest_PcGamerz13_*

Guest_PcGamerz13_*
  • Guests

Posted 07 March 2006 - 02:06 AM

Deleted

#10 XenoPhage

XenoPhage
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 07 March 2006 - 03:54 AM

*sigh* I was curious what the fix was too.. guess I'll never know now...
--
[a href=\"http://blog.godshell.com\" target=\"_blank\"]XenoPhage[/a]
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Something mysterious is formed, born in the silent void. Waiting alone and unmoving, it is at once still and yet in constant motion. It is the source of all programs. I do not know its name, so I will call it the Tao of Programming.[/quote]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users