if($franchise_status == '0') {
header('Location:http://www.name.com/index.php');
} else { header('Location:http://www.name.com/index.php'); }
Your above code has been corrected. Header redirects you to another page so any php you echo after it would not show so you can do that before the header or save it as a session variable and then display it in the redirected page
e.g
echo '<p>paragraph</p>';
Alternatively, you can echo, then sleep and redirect. Assuming you want the echo to run on same page.
Eg
if($franchise_status == '0') {
echo 'hey, blah blah';
// sleep for a seconds
sleep(5);
//continue
header('Location:http://www.name.com/index.php'); }