It sounds to me like the OP might be talking about some kind of template file, where he wants to replace macros/variables with values extracted from a relational database. If so, this is really two questions; firstly, about how to read from a PostgreSQL DB, and secondly about how to perform the replacements. Before attempting to give a more complete answer, I will wait for more information from aocferreira.
--- rod.
|