Forum


Replies: 4   Views: 2837
Dynamic table
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 Tiago Scalco de Mello  · 28-03-2017 - 00:05

How do I put data from a database directly into a table for docx?

 

 In html use foreach to traverse all cando and create table

 <?php foreach($consulta1 as $linha): ?>
         <tr>
               <td><?php echo $linha["name"]; ?></td>
         </tr>  
           <?php endforeach; ?>

But I do not want to use html