how to fix Headers already sent error in PHP
Reason: Header already send error in PHP occurs when we print anything before redirecting using header(); Script must occur before content. Solution: use this think if above method not works : https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php/8028987#8028987
Discussion