<?php 
$nombre = $artista->getNombre_artista();
$imagen = $artista->getImagen();
echo "<h1>" . $nombre . "</h1>";
$url = "./imagenesArtistas/" . $nombre . "/" . $imagen;
echo '<div id="imagen"><img src="' . $url . '" width="500" height="300" /></div>';
?>

            <h1>Eventos</h1>

            <?php 
$id = $artista->getID_artista();
$manageEvento = new ManageEvento($bd);
$manageLugar = new ManageLugar($bd);
$manageArtista = new ManageArtista($bd);
$listaEventos = $manageEvento->getList();
?>
 
            <table border="1" class="tablaEventos" id="tablaArt">    
                <thead>
                <th>Evento</th>
                <th>Fecha</th>
                <th>Lugar</th>
                </thead>

                <?php 
foreach ($listaEventos as $indice => $evento) {
    $id2 = $evento->getID_artista();
    $lugar = $manageLugar->get($evento->getID_lugar());
    if ($id === $id2) {
        ?>