I have a php file that performs a few UPDATE statements in succession. I want the page to redirect after the last statement is finished updating the database.
However, when I use:
header("location: nextpage.php");
exit;
I get the warning : Cannot modify header information - headers already sent...
Is there a way to perform this script at all? or is there another way to make this work better?