I am having trouble with the following piece of code:
$msgcount = mysql_result($results, 0, 'message_count');
if($msgcount>5){
header('location: home.messages.view.php?message=Message%20not%20sent.%20This%20users%20message%20box%20is%20full.');
}
the $msgcount variable is greater than 5 (i have run die($msgcount) before the if statement to check) yet the if statement never equates to true.
I have also tried <5 and ==5 but nothing works!
Any ideas?
Thanks in advance.