View Single Post
  #3 (permalink)  
Old 10-19-03, 08:03 PM
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
So you basically rely on detecting the "\n" at each line of text, turn all of the lines into array elements and then count the elements and run through a loop, echo'ing each element in the <LI> formatting. That makes sense to me.

I was originally thinking along the lines of ereg_replace each "\r" with "</LI><LI>" but I like your way better.

1 - So, is that the basis of formatting all these types of database entries... explode on the "\n"?
2 - Also, what type of column should these go into the mysql database as? TEXT or BLOB?

THanks a bunch for the advice - Paul
Reply With Quote