cosi' non esce nienteOriginariamente inviato da Master Darel
Codice PHP:
$query="select count(*) AS conteggio from immagini_hotel where id_hotel= \"$id_hotel\" and attiva=\"1\" order by rand() limit 0,1";
$risultato_foto = @mysql_query($query) or die("Impossibile eseguire l'interrogazione.");
$numero_foto = mysql_fetch_array($risultato_foto);
while ($riga_foto = mysql_fetch_array($risultato_foto)) {
$foto_da_vedere = $riga_foto['foto'];
echo "$numero_foto";
if ($numero_foto["conteggio"] == 0)
{
echo "x";
}
elseif($numero_foto["conteggio"] >= 1)
{
echo "y";
}
}