Hello,
I'm trying to populate a table with mysql data. It populates, but the <th> and <tr> are not lining up:
Here's the output:
Application Login Password
none none none
you fix this
test test test
new new NEW
none none none
As you can see, the header (Application Login Password) isn't lining up with the rest of the rows.
Here is the code I'm using:
if (mysql_num_rows($result) > 0) {
// yes
// print them one after another
echo"<table>
<th>
<td>Application</td>
<td>Login</td>
<td>Password</td>
</th>";
while($row = mysql_fetch_row($result)) {
echo "<tr>
<td>".$row[0]."</td>
<td>".$row[1]."</td>
<td>".$row[2]."</td>
</tr>";
}
echo "</table>";
Can anybody tell where I'm going wrong here?
I appreciate any help you could give.
ED
