Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/12/2005, 06:41
Avatar de Quest
Quest
 
Fecha de Ingreso: diciembre-2002
Ubicación: Santiago
Mensajes: 129
Antigüedad: 21 años, 5 meses
Puntos: 2
...

Código PHP:
<?php while($row=mysql_fetch_array($rs)){?>
    <tr> 
        <td height="20"><input type="checkbox" name="boton[]" value="<?=$row['Id_usuario']?>"></td>
        <td height="20" align="left"><?=$row['usuario']?></td>
    </tr>
<?php }?>
Código PHP:
if ($empty($_POST['boton']) && count($_POST['boton']) {
$in implode(","$_POST['boton']);
$sSQL="DELETE FROM tabla WHERE campo IN($in)";
mysql_db_query("base",$sSQL); 


saludos.
__________________
http://victorsanmartin.com
Web Developer
http://www.guiasitios.cl

Última edición por Quest; 22/12/2005 a las 07:08