<?php error_reporting(E_ALL); ini_set('display_errors', 1); /** * @name table.php * @description prints all the inventary items inside a table */ require_once './classes/concertClass.php'; // instace of the items $concert = new drawConcertTable(); // get all items on the database from concierto and entrada $concertItems = $concert->all(); // print the table echo ' <div class="col-md-8 table-container-list"> <table class="table"> <thead class="table-row-header"> <tr> <th>id</th> <th>Concierto</th> <th>Fecha</th> <th>Hora</th> <th>Precio</th> <th>Entradas Disponibles</th> </tr> </thead> <tbody> '; foreach ($concertItems as $key => $item) { echo '