I don't know what had happend, but that ";" was not in the original code. I know that it is in my mail, but it is not in the original code, I am sure.
Again, to avoid other problems, this is my code:
<?php
include ('lib_function.php');
xBody('Inicio', '');
$kco_tema = $HTTP_GET_VARS['f_kco_tema'];
$no_tema = $HTTP_GET_VARS['f_no_tema'];
$de_tema = $HTTP_GET_VARS['f_de_tema'];
if (xSQL())
{
if ($kco_tema == 0)
{
$sql='Insert into temas values ('.$kco_tema.', "'.$no_tema.'", "'.$de_tema.'"

';
$msg='inserção';
}
else
{
$sql='Update temas set no_tema = "'.$no_tema.'", de_tema ="'.$de_tema.'" where kco_tema = '.$kco_tema;
$msg='Alteração';
}
$result = mysql_query($sql);
if (!$result)
$msg = 'Erro em Acesso a banco:'.$msg;
else
$msg = 'Operação Ok:'.$msg;
//echo '<a href="temasLista.php?msg='.$msg.'">Retorna</a>';
header("Location:
}
xBody('Fim');
?>
function xBody($acao, $conteudo='')
{
if ($acao == 'Inicio')
{
if ($conteudo == '')
{
print x('+').'<html>'.x('+').'<body>';
}
else
{
print x('+').'<html>'.x('+').'<head>'.x('+').'<title>'.x().$conteudo.x('-').'</title>';
print x('-').'</head>'.x('+').'<body>';
print x('+').'<h1>'.x().$conteudo.x('-').'</h1><br><br>';
}
}
elseif ($acao == 'Fim')
print x('-').'</body>'.x('-').'</html>';
else
print 'xBody ERRO ERRO ERRO Acao';
return ;
}