hi,
i need a way to allow my users to replace placeholders with data from my recordset in mysql.
situation is:
- the create a letter and have keywords defined from my recordset columns such as {Name}, {DOB}, {Email} and so on.
- currently i can generate the ltter but i need a way to replace all columns like above with the values from my recordset query on page.
issue is i cannot do it manually for each column as one there is far too many and two there maybe additional fields added and it will be used for other tables with big tables.
a developer had given me a piece of code that seemd to work before which is preg_replace? but this is not happening now and need a way to mass change all columns like above with the correct values from query.
many thanks