How can i echo a h1 depending on the variable set on the page? The script below is breaking my page. Looks like my syntax is incorrect
<header role="banner">
<?php
if($page =="home_page") {echo "<h1>" 'Mountain ' "</h1>"; }
else if($page =="parts") {echo "<h1>" 'parts ' "</h1>"; }
else if($page =="cars") {echo "<h1>" 'cars ' "</h1>"; }
?>
</header>
Many thanks, P
<?php ini_set("display_errors", 1); error_reporting(E_ALL); ?>at the top of your file(s) and php will give you the answer