Repertorio
|
$query = "SELECT ID_TIPO_CANTO,TIPO,DESCRIZIONE FROM tipo_canto";
$result = mysql_query($query, $db);
while ($tipo_canto= mysql_fetch_array($result)) {
$tipo_c = $tipo_canto['ID_TIPO_CANTO'];
$query = "SELECT COUNT(*) AS COUNT FROM repertorio WHERE FLAG_CANCELLATO = 0 AND ID_TIPO_CANTO = ".$tipo_c;
$result_count = mysql_query($query,$db);
$row_count = mysql_fetch_array($result_count);
if ($row_count['COUNT'] > 0)
{
?>
|
print("");
?>
Titolo
|
Autore
|
Ultima Esecuzione
|
|
|
$query = "SELECT ID_CANTO,TITOLO,AUTORE,PRIMO_STUDIO,ULTIMA_ESECUZIONE,DATA,LINK_AUDIO,FLAG_AUDIO from repertorio WHERE FLAG_CANCELLATO = 0 AND ID_TIPO_CANTO = ".$tipo_c;
$result_canzoni = mysql_query($query,$db);
$cont = 0;
while ($canzoni_d = mysql_fetch_array($result_canzoni)) {
?>
$cont++;
print("");
?>
print($canzoni_d['TITOLO']);
?>
|
print($canzoni_d['AUTORE']);
?>
|
print($canzoni_d['ULTIMA_ESECUZIONE']);
?>
|
print(getYear($canzoni_d['DATA']));
?>
|
if ($canzoni_d['FLAG_AUDIO'] == 1) {
?>
}
?>
|
}
?>
|
// Fine If count > 0
}
// Fine While discografia
}
?>
* Tutte le demo ascoltabili sono state prese da registrazioni Live.
|
|