Classifica delle canzoni più votate

Sfondo

query(“SELECT voting_end_time FROM settings WHERE id=1”);
$setting = $setting_res->fetch_assoc();
$endTime = $setting[‘voting_end_time’]; // formato MySQL DATETIME
?>





Classifica Canzoni



📊 Classifica Canzoni che avete votato

Tempo rimanente alla chiusura della votazione:

query(”
SELECT title, CAST(votes AS UNSIGNED) AS votes
FROM songs
WHERE CAST(votes AS UNSIGNED) > 0
ORDER BY votes DESC
“);

$pos = 1;
if ($res && $res->num_rows > 0) {
while ($row = $res->fetch_assoc()) {
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
}
} else {
echo “

“;
}
?>

Posizione Canzone Voti
” . $pos++ . “ ” . htmlspecialchars($row[‘title’]) . “ ” . $row[‘votes’] . “
Nessun voto registrato

(La classifica si aggiorna automaticamente ogni 10 secondi)