$valori=Valori($idx);?>
echo $valori[titolo]?>
echo $valori[testo]?>
$fto=mysql_db_query($dbname,"select * from foto where tipo=1 and legame=$idx and vis=1 order by ordine");
while ($ft=mysql_fetch_array($fto)){?>
-
}?>
$result=mysql_db_query($dbname,"select * from pagine where lay='links' and vis=1 and pad=$idx order by ord ");
while ($row=mysql_fetch_array($result)){
$valori=Valori($row[ID]);?>
$rsfoto=mysql_db_query($dbname,"select * from foto where tipo=1 and legame=$row[ID] and vis=1 order by ordine");
if ($ft=mysql_fetch_array($rsfoto)){?>
}?>
if ($valori[titolo]!=""){?>
echo $valori[titolo]?>
echo $valori[sito]?>
}?>
if ($valori[testo]!=""){?>
echo $valori[testo];?>
}?>
}?>