Okay, when the "kill_button" is pressed, the page simply refreshes and no action takes place once it is pressed. So, is there any reason why it isn't working? Click here to view code! If anyone can see what is wrong and corrects the problem and makes this work, i will reward that person with $10 for correcting the problem. Thankyou, NateJ
Well, the page is currently showing the whole, it isn't executing it, so. Put <?php at the beginning and ?> at the end.
A few notes which may or may not help: In the snippet: 1. There is no "kill_button" 2. $username is never set. 3. Sometimes you use $kill_username and sometimes $target->user. Are these interchangeable? Without access to all the code and the database, the only thing I can suggest is that you echo the data before decision points, so you know the correct information is being passed.
kill_button was renamed to "kill". $username is set in another part of the script. $kill_username and $target->username are pretty much the same i guess. I've also noticed that it all works up until: elseif ($fetch->location == $target->location){ PHP: I can give access to the whole script if need be, PM me if you're still interested in helping. Thanks, NateJ