Replies: 1   Views: 3237
Table on loop in same document
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by LuckyObserver  · 05-02-2014 - 10:43

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 a sql query. The database holds the details of products A to Z.

What I would like for the word document to show is the details of products A to G or A to 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!