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