Hello,
I was wondering if anyone had any recommendations now how best to implement common page headers (e.g. main navigation) and footers?
Currently I am storing them, as HTML in my MySQL database and displaying them like this (abridged):
<?php
include ('common_functions.php');
$lang_id = 1; # English
$page_details = get_page_details ($lang_id);
?>
html stuff ...
<?php echo $page_details['header']?>
.
.
.
.
<?php echo $page_details['footer']?>
.... if you get the idea.
Google isn't correctly crawling the site, so I was wondering if this was something to do with it.
Would you recommend another way?
Thanks,
Old noob