Jump to content

[SOLVED] Delete page not fully Deleting?


darkfreaks

Recommended Posts

Ok so it does not deleted the user id from the members_profile2 area? i will comment out the line.

 

 

<?php

/*
Process Delete Account (admin_delete_account.pro.php)
*/

$rank_check = "7";
include "../global.inc.php";

$getAccount = fetch("SELECT * FROM members2 WHERE username = '$account_name' AND game = '$game'");

if (!$getAccount[id])
{
die(header(error("admin_delete_account.php?game=$game", "That account does not exsist.")));
}
else
{
mysql_query("DELETE FROM members2 WHERE id = '$getAccount[id]'");
mysql_query("DELETE FROM members_profiles2 WHERE id = '$getAccount[id]'");//problem line
mysql_query("DELETE FROM usershops2 WHERE owner = '$getAccount[id]'");
mysql_query("DELETE FROM usershops_items2 WHERE owner = '$getAccount[id]'");
mysql_query("DELETE FROM user_pets2 WHERE id = '$getAccount[id]'");

mysql_query("DELETE FROM usergallerys WHERE owner = '$getAccount[id]'");
mysql_query("DELETE FROM usergallerys_items WHERE owner = '$getAccount[id]'");

mysql_query("DELETE FROM safety_box WHERE owner = '$getAccount[id]'");

mysql_query("DELETE FROM auctions2 WHERE owner = '$getAccount[id]'");

mysql_query("DELETE FROM bank2 WHERE user = '$getAccount[id]'");
mysql_query("DELETE FROM battle_challenges2 WHERE challenge_who = '$getAccount[id]' OR challenge_by = '$getAccount[id]'");
mysql_query("DELETE FROM members2 WHERE id = '$getAccount[id]'");
mysql_query("DELETE FROM clubs2 WHERE owner = '$getAccount[id]'");
mysql_query("DELETE FROM club_members2 WHERE user = '$getAccount[id]'");

die(header(error("admin_delete_account.php?game=$game", "$getAccount[username] has been deleted.")));
}

?>

Link to comment
https://forums.phpfreaks.com/topic/106382-solved-delete-page-not-fully-deleting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.