Codice PHP:
$sql1 = "SELECT n_vincente, piazzato, vincente, id_giocata FROM giocate WHERE id_giocatore='$id_giocatore' AND data='$_GET[dt]'" or die(mysql_error());
$res1 = mysql_query($sql1);
while($ggg = mysql_fetch_array($res1)) {
if (mysql_num_rows($res1)==0) { $abilita = 'SI'; } else { $abilita = 'NO';
echo "Hai scelto [b]".$ggg['n_vincente']."[/b] -[b]".$ggg['vincente']."[/b] - [b]".$ggg['piazzato']."[/b]"; }
}