} catch (Exception $e) { echo "Ha ocurrido un error"; } if ($ins != null) { foreach ($ins as $key => $bl) { $inscripcion = $bl['numSolicInsc']; ?> <tr> </tr> <?php } } else { echo "No hay datos"; } try { $ins = $perfil->seleccionar_renovacion($usuario); } catch (Exception $e) { echo "Ha ocurrido un error"; } if ($ins != null) { foreach ($ins as $key => $bl) { $renovacion = $bl['numSolRen']; ?> <tr> </tr> <?php } } else { echo "No hay datos"; } ?>