Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/01/2005, 19:41
Avatar de pekeña
pekeña
 
Fecha de Ingreso: enero-2005
Ubicación: CONCEPCION
Mensajes: 57
Antigüedad: 19 años, 3 meses
Puntos: 0
borrar registros

tengo este codigo para eliminar datos de una tabla no me muestra error , pero lo que pasa es que no me elimina

<html>
<head>
<title>Eliminar DI</title>
</head>
<body>
Seleccione la di eliminar

<?php
include("config2.php");
$link=Conectarse();
$result=mysql_query("select * from di wehere id=$numdi",$link);
?>
<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>
<TR><TD> <B>DI</B></TD> <TD> <B>Borrar</B> </TD></TR>
<?php

while($row = mysql_fetch_array($result)) {
echo("<a href=\"eliminardi1.php?id=%d\">Borra</a></td></tr>".$row["numdi"]);
}
mysql_free_result($result);
mysql_close($link);
?>
</table>
</body>
</html>
y aqui va el k elimna




<?php
include("config2.php");
$link=Conectarse();
$id=$_GET['id'];
mysql_query("delete from manifiestos where id = $numdi",$link);
$sql="DELETE FROM tabla WHERE id='".$Registro['id']."'";
mysql_query($sql);
header("Location: eliminardi.php");
?>
__________________
Josi-Jo :adios: saludos