I am having trouble with this code block:
if($row['banned'] == 1) {
header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' );
} elseif ($row['banned'] == 2){
header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' );
}
Ive also tried this:
if($row['banned'] == 1 or $row['banned']== 2) {
header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' );
}
But none of this works... I am trying to check if $row['banned']
equals 1 or two, and go to a specific page if the MySQL database has the value of 1 or 2 in the banned column. So, I want it to check if the column is equal to 1 or 2, then redirects to the page specified.