include_once('secure.php'); $page = 'Consulenti'; if((!isset($_GET['con']))||(!is_numeric($_GET['con']))) { header('Location: /consulenti.php'); } $pro = $_GET['con']; $sql = "SELECT * FROM sg_procons WHERE tipo='consulenti' AND visual='YES' AND id='".$pro."' LIMIT 1"; include('config.php'); $result = mysql_query($sql); $righe = mysql_num_rows($result); if($righe >= 1) { $id = mysql_result($result, $i, 'id'); $nome = mysql_result($result, $i, 'nome_ita'); // if($nome == '') // { // if($lang == 'eng') // { $cognome = mysql_result($result, $i, 'nome_eng'); // } // } $txt = mysql_result($result, $i, 'testo_'.$lang); if($txt == '') { if($lang == 'eng') { $txt = mysql_result($result, $i, 'testo_ita'); } } $email = mysql_result($result, $i, 'email'); } include('header.php'); ?>