PHP 27
PHP Table By micha on 2nd March 2021 12:44:33 PM
  1. <div class="container wrapper">
  2.         <?php if (count($ppl) > 0) { ?>
  3.  
  4.                 <table>
  5.                         <thead>
  6.                         <tr>
  7.                                 <th><?php echo implode('</th><th>', array_keys(current($ppl))); ?></th>
  8.                         </tr>
  9.                         </thead>
  10.                         <tbody>
  11.                         <?php foreach ($ppl as $user) { ?>
  12.                                 <tr>
  13.                                         <td><?php echo implode('</td><td>', $user); ?></td>
  14.                                 </tr>
  15.                         <?php } ?>
  16.                         </tbody>
  17.                 </table>
  18.  
  19.         <?php } else { echo 'Keine Datensätze gefunden'; } ?>
  20. </div>

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.