Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/04/2011, 18:10
Avatar de ESNOLA
ESNOLA
 
Fecha de Ingreso: octubre-2006
Mensajes: 188
Antigüedad: 17 años, 6 meses
Puntos: 20
Respuesta: Borrar registro en mysql con PHP

No le estás indicando el valor $noticiaTitulo que tiene que utilizar en borrar2.php
Código PHP:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>borrar2.php</title>
</head>

<body>
<?
mysql_connect
("127.0.0.1","root","110695");

//////Te falta esto///////
$noticiaTitulo $_POST['nombre'];

$sSQL="Delete From noticias Where noticiaTitulo='$noticiaTitulo'";
mysql_db_query("lab",$sSQL);
?>

<h1>
  <div align="center">Registro Borrado</div></h1>

</body>
</html>
Y ten en cuenta:
mysql_db_query -- Está obsoleto http://php.net/manual/es/function.mysql-db-query.php