<?php

$catalog = new DVD();
$band = trim(strip_tags($_GET['band']));
$result = $catalog->showBand($band);
if (!is_array($result)) {
    $errMsg = $result;
} else {
    echo "<p>Всего треков: " . count($result) . "</p>";
    ?>
	<form action="catalog.php" method="post">
	<input type="hidden" name="action" value="anthology"/>
	<table border="1" width="100%">
	<tr align="center"><th colspan="4">Исполнитель: <?php 
    echo $band;
    ?>
</th></tr>
	<tr>
		<th>Альбом</th>
		<th>Трек</th>
		<th>Выбрать для заказа</th>
	</tr>
<?php 
    foreach ($result as $item) {
        $id = $item['id'];
        $title = $item['title'];
        $track = $item['track'];
        echo <<<LABEL
\t\t<tr>
\t\t\t<td>{$title}</td>
\t\t\t<td>{$track}</td>