Formatting a value retirved from database
Posted: Tue Nov 18, 2008 3:12 pm
hello
I have stored a paragraph in mysql database and when i try to retrive it and sisplay i want to format the paragrapg...
The paragraph is like this
1.some text 2.again some text 3.again some text 4.again some text
I want my output to be like this
1.some text
2.again some text
3.again some text
4.again some text
and so on
i am able to retrive the praragrapg in a variable like the variable is $paragraph
now i dont no how to cut the line after a number and point(fullstop)
Please Help me guys...its urgent
THANKING YOU IN ADVANCE
I have stored a paragraph in mysql database and when i try to retrive it and sisplay i want to format the paragrapg...
The paragraph is like this
1.some text 2.again some text 3.again some text 4.again some text
I want my output to be like this
1.some text
2.again some text
3.again some text
4.again some text
and so on
i am able to retrive the praragrapg in a variable like the variable is $paragraph
now i dont no how to cut the line after a number and point(fullstop)
Please Help me guys...its urgent
THANKING YOU IN ADVANCE