Frag mich doch Rene, ich habe das "normale" löschen durch eine Funktion ersetzt. Da ist unteranderem folgendes drinne.
PHP-Code:
function user_del($uid){global $db_prefix;
//Doppler
db_query("DELETE FROM `vms_doppler2_zahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_doppler_zahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x1_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x1_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x2_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x2_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x3_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x3_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x4_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x4_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x5_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x5_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x6_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x6_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x7_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x7_einzahlungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x8_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_x8_einzahlungen` WHERE uid=".$uid."");
//Buchungslisten
db_query("DELETE FROM `vms_buchungen` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_buchungen_vl` WHERE uid=".$uid."");
db_query("DELETE FROM `vms_gamebuchungen` WHERE uid=".$uid."");
}