Using database to build a html code

I have two databases, like this:
Product: name, description, price
Emails: list of products
On my wokflow, the user can create an Email and add products to it. By clicking on “Generate email”, I want to assemble a HTML code for each item of the list of products, like this:
[div]
[p]product name[/p]
[p]description[/p]
[p]price[/p]
[/div]
How can I use database information to build HTML code and then render it on the screen?

This topic was automatically closed after 70 days. New replies are no longer allowed.