What change(s) should I make to following PHP script in order for the 'headers already sent' error not to occur ?
Now the error occurs on calling header('Refresh: 3; url=#'); on line 300, stating :
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\voetbaltot
.php:41) in C:\xampp\htdocs\voetbaltot
.php on line 300
The PHP Manual (http://nl.php.net/manual/en/function.header.php
) point out:
'Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include, or require, functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.'
but I do not understand how exactly I would have to change my code in order to do that.