Simple PHP / Table problem
Posted: Sat Jul 28, 2007 12:11 pm
Hi all,
I think its just me being stupid but I cant get this table right so it only displays one column heading instead of one for each row! Any ideas? I'm assuming its the loop in the wrong place.
I think its just me being stupid but I cant get this table right so it only displays one column heading instead of one for each row! Any ideas? I'm assuming its the loop in the wrong place.
Code: Select all
<table width="25%" border="1">
<tr>
<td>Surname</td>
<td>Forename</td>
<td>Title</td>
</tr>
<tr>
<td> <?echo " $client_surname";?></td>
<td><?echo "$client_forename";?></td>
<td><?echo "$client_title";?></td>
<td><?
echo "<a href=\"update.php?id=$id\">Update</a> - <a href=\"delete.php?id=$id\">Delete</a>";
echo "<br><br>";?></td>
<tr>
<?++$i; } } else { echo "The database is empty"; }?>
</table>