include('config.php');
$nome = Array();
$sql = "SELECT * FROM sg_procons WHERE tipo='consulenti' AND visual='YES' ORDER BY nome_eng";
$result = mysql_query($sql);
// echo mysql_error();
$righe = mysql_num_rows($result);
for($i = 0; $i < $righe; $i++)
{
$id = mysql_result($result, $i, 'id');
// echo '
Nome_italiano:'.mysql_result($result, $i, 'nome_ita').'
';
$nome[$id] = mysql_result($result, $i, 'nome_ita');
// if($nome[$id] == '')
// {
// if($lang == 'eng')
// {
$cognome[$id] = mysql_result($result, $i, 'nome_eng');
// }
// }
$txt[$id] = mysql_result($result, $i, 'testo_'.$lang);
if($txt[$id] == '')
{
if($lang == 'eng')
{
$txt[$id] = mysql_result($result, $i, 'testo_ita');
}
}
}
echo '
';
// echo '
//
//
';
?>
include('footer.php');
?>