//flex table opened by JP

Click to See Complete Forum and Search --> : PHP mysql ?


jutah
12-16-2001, 10:45 PM
Me and a few other guys are writting a forum based site for our senior project in school. It is much like the one here at Sysopt. We are using mostly PHP for the back end scripting and using mysql as our db. My question is that when we display our posts it won't show the hard returns made in the original post. For example, if I were to post "This
is
on
five
lines

would be displayed as on one line like "This is on five lines"

Is there any easy solution?????

Thanks
Jutah

qball
12-18-2001, 01:05 AM
yes, maybe...


Me and a few other guys are writting a forum based site for our senior project in school. It is much like the one here at Sysopt. We are using mostly PHP for the back end scripting and using mysql as our db. My question is that when we display our posts it won't show the hard returns made in the original post.

Ok, hard return (send in the russian, pull crazy ivan),

Show me soft return
I just did, methinks, ...
else do your own f-ing homework:

2 "hard returns"

Show me soft return...

DougM
12-18-2001, 01:39 PM
This might be an HTML formatting issue.

A hard return in a source HTML document does not show as anything when displayed as HTML, it usually compresses whitespace as well (multiple spaces display as just one space)..
One way to fix this would be to parse the posts and convert all returns to a <BR> html code.

Another would be to surround the whole post in <PRE> </PRE> for preformatted which will keep spaces and hard returns in the form they are in the source.

qball
12-19-2001, 01:27 AM
Show me soft return...


I'm waiting....