street tactic
11-13-2007, 01:23 PM
My goal is to create a section of information and maps which I would like to edit independantly ( ie: only work on "Automotive" php file rather than the entire template )
I also prefer cutting down webpages into smaller subsections/files to keep things cleaner & easier to edit. So each section will have its own .php file containing its tables and contents but needs to be called by the main table and organized in organized fashion. Its nothing too technical but after reading some posts about including php includes calls via the template it looks like I'm going about it all wrong.
Here's the page as it sits being called completely from the template:
http://flaforum.com/resources.php
and this is how I would like to call the code:
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td> <? require ("resources/florida.php");?> </td>
<td><? require ("resources/beaches.php");?></td>
<td><? require("resources/parks.php");?></td>
</tr>
<tr>
<td><? require("resources/automotive.php");?></td>
<td><? require("resources/motorcycle.php");?></td>
<td><? require("resources/kart.php");?></td>
</tr>
<tr>
<td><? require("resources/firearm.php");?></td>
<td><? require("resources/sports.php");?></td>
<td><? require("resources/misc.php");?></td>
</tr>
</table>
Anyone have any ideas ? I would also prefer keeping this information stored in files rather than increase my database size because at some point this will be a substantial amount of information. :confused:
I also prefer cutting down webpages into smaller subsections/files to keep things cleaner & easier to edit. So each section will have its own .php file containing its tables and contents but needs to be called by the main table and organized in organized fashion. Its nothing too technical but after reading some posts about including php includes calls via the template it looks like I'm going about it all wrong.
Here's the page as it sits being called completely from the template:
http://flaforum.com/resources.php
and this is how I would like to call the code:
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td> <? require ("resources/florida.php");?> </td>
<td><? require ("resources/beaches.php");?></td>
<td><? require("resources/parks.php");?></td>
</tr>
<tr>
<td><? require("resources/automotive.php");?></td>
<td><? require("resources/motorcycle.php");?></td>
<td><? require("resources/kart.php");?></td>
</tr>
<tr>
<td><? require("resources/firearm.php");?></td>
<td><? require("resources/sports.php");?></td>
<td><? require("resources/misc.php");?></td>
</tr>
</table>
Anyone have any ideas ? I would also prefer keeping this information stored in files rather than increase my database size because at some point this will be a substantial amount of information. :confused: