I want to add a row at the top, black background, with column 1 having 'Headline' in text and column 2 having 'Author' in text. Then below let the table generate dynamically based on articles.
Also, trying to set the <font class> of echo($row["author"]);
echo("<table>");
while($row = mysql_fetch_array($result)){
if ($bgcolor == "#E0E0E0"){
$bgcolor = "#FFFFFF";
}else{
$bgcolor = "#E0E0E0";
}
<tr bgcolor="FFFFFF"><td>Story</td><td>Author</td></tr>
echo("<tr bgcolor=".$bgcolor."><td>");
echo "<a href=\"story.php?id=" .$row["id"]. "\" class='newsLink'>" .$row["headline"]. "</a>";
echo("</td><td class='smallmidText'>");
echo($row["author"]);
echo("</td></tr>");
}
echo("</table>");