But, what if I were trying to make a seperate table for different areas of the existing page.
When I try to use starttable and endtable to create two different maintables, the code following gets munted (ie the tables in the template)
What you could try is something like this (this is the only way I could make it sit right in all themes that come with coppermine):
<?php
define('IN_COPPERMINE', true);
define('INDEX_PHP', true);
require('include/init.inc.php');
pageheader('Your page title goes here');
// your actual page content starts here
starttable();
?>
<td width ="100%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<td align="center" valign="middle" class="tableb">
<?PHP
echo <<<EOT
<table width="100%" align="center" valign="center" >
<tr>
<td>
This is your first table. <br />
1<br />
2<br />
3<br />
4<br />
</td>
</tr>
</table>
EOT;
?>
</td>
</table>
</td>
<?php
endtable();
starttable();
?>
<td width ="100%">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<td align="center" valign="middle" class="tableb">
<?PHP
echo <<<EOT
<table width="100%" align="center" valign="center" >
<tr>
<td>
This is your second table. <br />
5<br />
6<br />
7<br />
8<br />
</td>
</tr>
</table>
EOT;
?>
</td>
</table>
</td>
<?php
endtable();
// your actual page content ends here
pagefooter();
ob_end_flush();
?>