View Single Post
  #1 (permalink)  
Old 10-19-03, 04:01 AM
paulj000 paulj000 is offline
Bull in a china shop
 
Join Date: Jul 2003
Location: California, USA
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
help plz: format retrieved Mysql data in HTML with PHP

I am looking for ways to format information from a mysql database into HTML. For instance if someone enters the following info in text box that will be inserted into a mysql table how do i retrieve it in a nice, formatted <li>fashion</li>.

The following goes into database from a textarea:

feature 1
feature 2
feature 3
feature 4
feature 5
feature 6

then it is retrieved with PHP and desired to be in the <LI> format like this:

<UL>
<LI>feature 1</LI>
<LI>feature 2</LI>
<LI>feature 3</LI>
<LI>feature 4</LI>
<LI>feature 5</LI>
<LI>feature 6</LI>
</UL>

How do I read this sort of data that is all in one "TEXT" entry in a database into HTML?
- thank you very much - Paul
Reply With Quote