FilmData($_GET["film"]); $tittle = $film->getTittle(); $cinemas = $filmDAO->getCinemas($_GET["film"]); $cinemasNames = array(); foreach($cinemas as $key=>$value){ $cinemasNames[$key] = $value->getName(); } foreach($cinemasNames as $value){ $cinemasListHTML = ''; } } //Reply: Depends on whether the purchase is to be made from a selected movie or a cinema. $reply = '

Película seleccionada: '.str_replace('_', ' ', $tittle).'


'.$tittle.'

Duración: '.$film->getDuration().'

Idioma: '.$film->getLanguage().'

Seleccione un Cine y una Sesión


'.$cinemasListHTML.'
'; //Page-specific content: $section = '
'.$reply.'
'; //General page content: require RAIZ_APP.'/HTMLtemplate.php'; ?>