query($sql); $sql = "delete from attachments where attachmentsid ='".$id."'"; $adb->query($sql); header("Location:index.php?module=".$_REQUEST['return_module']."&action=".$_REQUEST['return_action']."&record=".$_REQUEST['return_id']); ?>