Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/09/2008, 10:39
Avatar de the_web_saint
the_web_saint
 
Fecha de Ingreso: mayo-2008
Ubicación: localhost/tierra/america/panama
Mensajes: 1.229
Antigüedad: 16 años
Puntos: 43
Respuesta: problema con checkbok y el boton eliminar

Si estas intentando borrar los registros que seleccionaste en los chackbox, es necesario que coloques $llave en el where y no $id

Cita:
<?php
include("conext.php");
$link=Conectarse();

if(isset($_GET['id']))
{
$id=$_GET['id'];
mysql_query("delete from actividades where id_tabla = $id",$link);
}
if(isset($_POST['registro']))
{
foreach ($POST['registro'] as $llave)
{
mysql_query("delete from actividades where id_tabla = $llave",$link);

}
}
header("Location: borraractividades.php");
?>
__________________
..::The Saint::..
El pesimista se queja del viento; el optimista espera que cambie; el realista ajusta las velas.