Some context: I've created a docx template which includes 1 table. The table is to show the details of a particular product. The variables I would like inserted into the table will need to be extracted from a database using sql query. The database holds the detaills of products A to Z. What I would like for the word document to show is the details of products A-G or A-X (or however many are present in the database at the time, as new products are constantly added every week), but for each product to have its own subheading and table within the same document.
Is this at all possible?! If so, could someone help me out with the code??
I'm very much an amateur at phpdocx, so be gentle!