Hi all:
I am having trouble getting a redirect to work. The code is simple:
if ($row_cnt===0){
echo "ggggg";
mysqli_close($link);
header( 'Location: http://www.cnn.com' ) ;
} else {
Other Code
}
The "ggggg" is appearing on the page and when I echo $row_cnt "0" does appear. Yet I cannot get the page to redirect!
Any help appreciated!