Ver Mensaje Individual
  #21 (permalink)  
Antiguo 09/03/2006, 12:01
Avatar de JorgitoAlfajor
JorgitoAlfajor
 
Fecha de Ingreso: enero-2006
Mensajes: 152
Antigüedad: 18 años, 3 meses
Puntos: 1
No uses $_POST, usá $_GET (ya que estas estas enviando id por GET y no por POST). Y para que te funcione el header() tenés que borrar todas las etiquetas html. Quedaría así:

borrar.php:
Código PHP:
<?php 
  $id
=$_GET['id']; 
  include (
"conexion.php"); 
  
mysql_query("DELETE FROM noticias WHERE id='$id'") or die(mysql_error()); 
 
header("location: noticias.php"); 
?>
__________________
¿Se me entiende la letra?