View Single Post
Old 12-04-2012, 02:12 PM   PM User | #3
Eggweezer
New Coder

 
Join Date: May 2012
Posts: 97
Thanks: 75
Thanked 0 Times in 0 Posts
Eggweezer is an unknown quantity at this point
Let me see if I can better explain my situation.
Here is an example of what I mean (at this link).

http://sample.cnjwebsolutions.com/user/add.php

I am pretty sure that the problem is that I save my $paragraph as a VARCHAR(400).
So when I display it, it just spits it out (and ignores the line breaks).

Maybe I have to have multiple entries for "paragraph1", paragraph2"...... and then do something like:

if($paragraph1<>"")echo $paragraph1."</br">;
if($paragraph2<>"")echo $paragraph2."</br">;
if($paragraph3<>"")echo $paragraph3."</br">;

BUT.... I was hoping there was some "canned" php code available, or a strategy that someone might have.
I hate to have to use a massive CMS application, when many sites are small and I often code my own sites using (html/CSS).

Any help would be greatly appreciated!.

Last edited by Eggweezer; 12-04-2012 at 02:36 PM..
Eggweezer is offline   Reply With Quote