actually, I can't exactly do that. I have to do it with a query.
The reason for this is because I give the website owner the ability to edit their own page_content, and want to give them access to edit their meta tags, but not the layout (header, navigation, footer, copyright, etc...) and I am doing this with _GET values. so I need to lay my index out this way:
<?php
require_once( 'globals.php' );
require_once( 'layout.php');
getMeta();
getHeader();
getNavigation();
getPage();
getFooter();
getCopyright();
?>
so as you see the reason one table won't work is that I need to get meta then I have the header and navigation then the page content.
Also I have 2 separate tables now. one table named content, the other named layout. User editable page content is in the content table, the non editable areas are in the layout table. Now I need to add a third table for meta so it can call that editable area, then non editable, then editable again, then non editable again to the end of the page.
Okay, I am confusing myself now.
What I need is how to write the conditional statement with the sql query that will select the proper table from the meta database table based on the page name.
Thanks,
Donnie