Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/09/2011, 03:48
Avatar de dulcedeleon
dulcedeleon
 
Fecha de Ingreso: septiembre-2011
Ubicación: Asturias
Mensajes: 5
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: eliminar un unico registro tabla html con while

Hola,
Yo tengo el siguiente código:

en listado.php

<?php
require("conexion.php");
require("funciones.php");

$pag=$_SERVER['PHP_SELF'];
$query = "SELECT * FROM campana ORDER BY nombre ASC";
$queEmp = mysql_query($query, $conexion);
?>
<table width="660" border="0" cellspacing="2" cellpadding="0">
<tr>
<th>Nombre</th>
<th>Descripción</th>
<th colspan="2">&nbsp;</th>
</tr>
<?php while ($rsEmp = mysql_fetch_assoc($queEmp)) { ?>
<tr>
<td><?php echo $rsEmp['nombre']; ?></td>
<td><?php echo $rsEmp['direccion']; ?></td>
<td><a href="editar.php?id=<?php echo $rsEmp['id']; ?>">Editar</a></td>
<td><a href="#">Eliminar</a></td>
</tr>
<?php } ?>
</table>

y quisiera eliminar los registros uno a uno cuando pincho en "eliminar"

podríais ayudarme????

gracias