Jump to content

kinzer

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kinzer

  1. <?php $end = count($data); $id = array_column($data, 'id'); $option = array_column($data, 'option'); $start = array_column($data, 'start'); ?> <table class="table"> <thead> <tr> <th scope="col">Header ID</th> <th scope="col">Header</th> <th scope="col">Header Option</th> <th scope="col">Header</th> <th scope="col">Header</th> <th scope="col">Actions</th> </tr> </thead> <tbody> <?php for ($i = 0; $i < $end; ++$i){ ?> <tr> <?php echo "<td>".$id[$i]."</td>";?> <?php echo "<td>".$status[$i]."</td>";?> <?php echo "<td>".$option[$i]."</td>";?> <?php echo "<td>".$start[$i]."</td>";?> <?php echo "<td><a href=" . "edit_data.php?id=$id[$i]" . "><ion-icon name='create-outline'></ion-icon> </span></a></td>";?> </tr> <?php } ?> </tbody> </table>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.