mat
04-01-2004, 11:07 AM
I'm going to be populating a database table with around 30,000 records. Each record corresponds to a book. One of the columns holds the description (generally around 2-4 paragraphs).
This description text may have quotes, other funny characters and of course paragraph breaks. Correct me if I'm wrong but for these characters and paragraphs to display correctly on a web page the appropriate html codes/tags need to be there.
I can either store the html codes/tags in the table field so it's ready to pull out and display or I can store it as normal text with '\l' etc and parse it into html with PHP when I pull it out.
In terms of best practice, what do you suggest?
This description text may have quotes, other funny characters and of course paragraph breaks. Correct me if I'm wrong but for these characters and paragraphs to display correctly on a web page the appropriate html codes/tags need to be there.
I can either store the html codes/tags in the table field so it's ready to pull out and display or I can store it as normal text with '\l' etc and parse it into html with PHP when I pull it out.
In terms of best practice, what do you suggest?