Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.