PHP/HTML table help, please?

Radicular

New member
Shouldn't these days of the week be side by side? In one row, since I only ended the row on the last line?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<?php

echo "<tr><td><th> Feburary, 2009 </th></td></tr>";

$day = 1;

$day_names = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
echo "<table border=\"2\"><tr><td width=20><b>".$day_names[0]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[1]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[2]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[3]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[4]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[5]."</td>";
echo "<table border=\"2\"><td><b>".$day_names[6]."</tr></td>";

</html>
?>

Instead they go down vertically...how do I make them go horizontally like a normal row. Like how this goes for ex:

<html>

<center>
<table border="2">
<tr>
<td><b><center>Hi, Hi</b><br>
Hi</a>
</center></td>


<td><b><center>La La La</b><br>
Na Na Na<br>
....</center></td>
</tr>

</table> </center>

</html>
 
Back
Top