$banned has no value, I think you mean to use $row['banned']
pritaeas
Posting Prodigy
9,534 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98
Change this:
$query = mysql_query($sql);
with:
$query = mysql_query($sql) or die(mysql_error());
and check what you get. Also the session of the banned user should be destroyed.
cereal
Veteran Poster
1,195 posts since Aug 2007
Reputation Points: 358
Solved Threads: 231
Skill Endorsements: 22
Dunno if it's still relevant, but I always put an exit; after any header redirect.
diafol
Keep Smiling
10,838 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,534
Skill Endorsements: 61
I know it's really pathetic, but I just had a dream about that. I had to sift through all my code putting an exit(); after all my header redirects. I haven't done it for real, but that was last night's nightmare, I kid you not. I need to get out more.
Dani
The Queen of DaniWeb
21,555 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 376
Skill Endorsements: 124
Whoah nightmare - wide-eyed and preg-less. Could it be a message from the subconscious, telling you to find the exit so that you CAN go out more? Try it - I did on Friday night. Still suffering - from cringing - I told all my mates I loved them. Come to think of it Dani, I think I told you I loved you too. :)
Freedom may be over-rated after all...
diafol
Keep Smiling
10,838 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,534
Skill Endorsements: 61
Question Answered as of 10 Months Ago by
diafol,
pritaeas,
cereal
and 1 other