Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/04/2011, 12:30
Avatar de camilo1012
camilo1012
 
Fecha de Ingreso: febrero-2011
Mensajes: 46
Antigüedad: 13 años, 3 meses
Puntos: 1
Respuesta: Borrar registro en mysql con PHP

Gracias por sus respuestas pero aun no borrar los registro, el codigo quedo asi:

borrar1.php
Código:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>borrar1.php</title>
</head>

<body>
<div align="center">
<h1>Borrar un registro</h1>
<br>

<?
mysql_connect("127.0.0.1","root","110695");
echo '<form method="post" action="borrar2.php">Nombre<br>';

$sSQL="Select noticiaTitulo From noticias Order By noticia_ID DESC";
$result=mysql_db_query("lab",$sSQL);

echo '<select name="nombre">';

while ($row=mysql_fetch_array($result))
{echo '<option value="'.$row["noticiaTitulo"].'">'.$row["noticiaTitulo"].'</option>';}
mysql_free_result($result)
?>
</select>
<br>
<input type="submit" value="Borrar">
</form>
</div>

</body>
</html>