include ("../config.php");
include ("../funcoes.php");
# Cadastra registro na base
if($_POST["alterar"] == "ok"){
if(isset($_POST[activo])==1){ $ativo =1;} else {$ativo =0;}
$sql = "
UPDATE noticias SET
titulo='$_POST[titulo]',
cuerpo='$_POST[cuerpo]',
foto='$_POST[foto]',
estado='$estado'
WHERE idnoticia=$_GET[id]
";
mysql_query($sql);
FncMensagemAlerta("Alterado con éxito.");
FncRedireciona("logado.php");
}
$sql = "
SELECT * FROM noticias WHERE idnoticia=$_GET[id]
";
$qyNoticia = mysql_query($sql);
$rs = mysql_fetch_array($qyNoticia);
?>
echo $ConsTituloSite; ?>
include ("inc_top.php") ?> |
include ("inc_assina.php") ?> |