[VIEWED 3561
TIMES]
|
SAVE! for ease of future access.
|
|
|
ma_ko_hoo
Please log in to subscribe to ma_ko_hoo's postings.
Posted on 12-14-06 4:18
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
i displayed a few paragraph in my web page which was stored in the mysql table as a blob, but it was not displayed as a paragraph ( with no enter, in single line). Can some one help me if there is an extra code needed to display it correctly. EX: this is first para this is second para this is third para above is the stored blob type content when it is displayed it shows like this is first para this is second para this is third para Now i need to correct this, can any one have any idea.
|
|
|
|
DC_virus
Please log in to subscribe to DC_virus's postings.
Posted on 12-14-06 11:10
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
did you store it as html?? or just plain text?
|
|
|
DC_virus
Please log in to subscribe to DC_virus's postings.
Posted on 12-14-06 11:12
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
if you saved it as plain text, in html, try displaying the blob inside the tags. normally, its better to save it as html
|
|
|
Please log in to subscribe to 's postings.
Posted on 12-14-06 11:23
AM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
ma_ko_hoo bro use nl2br function...like this echo nl2br(mysql_field_name)..
|
|
|
directX
Please log in to subscribe to directX's postings.
Posted on 12-14-06 12:10
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
another way..... use echo ereg_replace("\n"," ", mysql_field_name); which will replaces all newline charecters (\n) to
html tag.
|
|
|
directX
Please log in to subscribe to directX's postings.
Posted on 12-14-06 12:12
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
sorry, line break tag did not show up in above post echo ereg_replace("\n","<br>", mysql_field_name);
|
|
|
ma_ko_hoo
Please log in to subscribe to ma_ko_hoo's postings.
Posted on 12-14-06 11:09
PM
Reply
[Subscribe]
|
Login in to Rate this Post:
0
?
|
|
Thanks buddies, I will try as suggested.
|
|