Hola, soy nueva en esto del php, tengo una serie de datos que cargan de uan tabla de una bbdd, cada registro tiene la opción de editar y eliminar. He conseguido poder editarlos pero no eliminarlo.
mi código es el siguiente:
<?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"> </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>
alguien podría ayudarme???
muchísimas gracias!!!!