<input type="text" class="form-control" name="nomTipProg" required/> <br> <button class="btn btn-success" >Progresion</button> </div> </form> <div class="col-md-4"> <table class="table table-hover"> <thead> <tr> <th>Nombre de Progresion</th> </tr> </thead> <tbody> <?php try { $cuadro = $cuadroC->seleccionar_progresion(); } catch (Exception $e) { echo "Ha ocurrido un error"; } if ($cuadro != null) { foreach ($cuadro as $key => $bl) { $nomLogro = $bl['nomTipProg']; $idLogro = $bl['idTipProg']; ?> <tr> <td> <?php echo $nomLogro; ?> </td>