Jump to content


Formatting field from database

  • Please log in to reply
No replies to this topic

#1 ethoemmes

  • Members
  • Pip
  • Newbie
  • 4 posts

Posted 18 September 2006 - 08:00 PM


I have a script which pulls information from a mySQL database. The field contains descriptions of books. The output is formatted within a <p class="description"> tag. The data in the database has coding within the field which determines quote's so for example:

databasefield = "This is normal text which I would like to format as above.

The database stores quotes in these square brackets

Normal text again etc etc"

What I would like to do is apply a different style to the text within the square brackets. Whats the best way of achieving this?



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users