I noticed a couple issues with your original -- here's a cleaner version that should show you the way:
<?php
function row_color($cnt,$even,$odd) {
print ($cnt%2) ? "<tr bg color=\"$odd\">" : "<tr bgcolor=\"$even\">";
}
echo "<table width='100%' cellspacing='2' cellpadding='2'>\n";
echo "<tr>\n<th align='left'>ID#:</th>\n<th align='left'>Column 1</th>\n<th align='left'>Column 2</th>\n</tr>\n";
require('connection');
$result = mysql_query("SELECT column1, column2 FROM table WHERE page_id=$page_id",$db);
while ($myrow = mysql_fetch_array($result)) {
$cnt=0;
$first=$row[0];
$second=$row[1];
row_color($cnt++,"#F8F8F0","#FFFFFF");
echo "\n<td valign='top'>$first</td>\n<td valign='top'>$second</td>\n</tr>";
}
echo "\n</table>";
?>
BTW, I have a bad habit of single-quoting tag attributes inside PHP -- It is probably better to do escaped double-quotes -- <td valign=\"top\"> -- whatever your preference, I guess.