HEX
Server: Apache
System: Linux iad1-shared-e1-19 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: austral3d (14892361)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /home/austral3d/fourdplan.com/php/update_noticia.php
<?php
$id = $_POST['id'];
$titulo = $_POST['titulo'];
$noticia = nl2br($_POST['noticia']);
$fecha = $_POST['fecha'];
require('conexion2.php');
mysql_query("update noticias SET titulo = '$titulo', noticia = '$noticia', fecha= '$fecha' where id = $id");

echo'<script>	
	alert("Los datos han sido actualizados correctamente.")	
	self.location="noticias.php"	
	</script>';
?>