Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.