Código PHP:
<? $TicketCompleto = mysql_query ("SELECT * FROM soporte ORDER BY id DESC");
while ($TicketD = mysql_fetch_array ($TicketCompleto)){ ?>
<td><? echo "$TicketD[usuario]"; ?></td>
<td><? echo "$TicketD[fecha]"; ?></td>
<td><? echo "$TicketD[ip]"; ?></td>
<td><? echo "$TicketD[mensaje]"; ?></td>
<td><label>
<input type="checkbox" name="borrar[]" value="$TicketD['id']">
</label></td>
</tr> <? } ?>
</table>
<?
if(isset($_POST["eliminar"]))
{
foreach($_POST["borrar"] as $key => $value)
{
if(isset($key))
{
mysql_query ("DELETE * FROM soporte WHERE id='$value'");
}
}
}
?>
<input name="EliminarSE" type="submit" value="Actualizar"/>
<? } else {}}?>