$sql_texto_interno = mysql_query("SELECT * from texto_interno where idtexto_interno = '3'") or die(mysql_error());
$tot = mysql_num_rows($sql_texto_interno);
if ($tot > 0) {
while ($l = mysql_fetch_array($sql_texto_interno)) { ?>
if($_SESSION ['idioma']=='es'){
echo $l['texto_es'];
}
else {echo $l['texto'];
} ?>
} } ?>