What I'm trying to accomplish is have along the right side of the page a summary of all the material in the various sections of the website. I'm trying to do this by having one table for each section, each containing two rows - one for title, and one for the summary. This might sound a bit confusing, but run the code I made and you'll see quickly what I'm trying to do.
The issue with it (at least in Internet explorer) is that for whatever reason, it's overlapping the tables. Sort of like it's sticking the second table on there before it waits to see how big the first one is going to be. I noticed this was happening in another script I tried using functions and tables as well and I really don't understand it. Why is this happening? Is there a way around it?
i know I could do this without php and functions and stuff, but I'm really starting to enjoy this stuff! It's so flexible it's great.
<?php
function righttable($righttitle,$righttext)
{echo "
<p>
<table width=180 border=0 cellspacing=0 cellpadding=1 align=right>
<tr>
<td bgcolor=#555555>
<table width=178 border=0 cellspacing=0 cellpadding=2>
<tr>
<td bgcolor=#555555>
<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=2 color=#000000><b>$righttitle</b></font></td>
</tr>
<tr>
<td bgcolor=#000000>
<font face=\"Arial, Helvetica, sans-serif\" size=2 color=#FFFFFF>$righttext</font></td>
</tr>
</table>
</td>
</tr>
</table>
</p>
"; }
?>
<table width=180 border=0 cellspacing=0 cellpadding=0 align=right>
<tr>
<td>
<p>
<?php
righttable("section 1", "this is where i would say what section 1 of the page is about");
righttable("section 2", "here is where I would say what section 2 of the page is about, etc");
?>
</p>
</td>
</tr>
</table>