darkfreaks Posted May 19, 2008 Share Posted May 19, 2008 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."))); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/106382-solved-delete-page-not-fully-deleting/ Share on other sites More sharing options...
darkfreaks Posted May 20, 2008 Author Share Posted May 20, 2008 Solved it was a mysql error Quote Link to comment https://forums.phpfreaks.com/topic/106382-solved-delete-page-not-fully-deleting/#findComment-545322 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.