Jump to content

How to embed dynamic content in a static text stored in MySQL ?


tmyonline

Recommended Posts

Hi guys,

 

I'm having a bunch of text, paragraphs of text information, that is stored in a MySQL table.  I need to embed some dynamic contents into this text so that when it is retrieved from the database, those dynamic contents will be evaluated.  Here's an example of the text:

 

Dear Mr X,

 

Your ticket number XYZ that you created on MM:DD:YYYY has been resolved.

 

Well, my actual text is much larger than this and consists of several paragraphs.  The above line is just an illustration.  In the above text, the terms "Mr X", "XYZ", and the date field "MM:DD:YYYY" are dynamic contents embeded in a large body of text.  When this text body is retrieved from the database, these dynamic contents will be evaluated depending on the values passed in.  So, Mr X can be Mr Green, XYZ can be 12345, and the date can be 03:12:2009.  Any idea ?  Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.