Hi.
The following code, displays each record in an individual column.
How do I display "Firstname" and "Lastname" in the same column, with "Lastname" on a new line?
$result = mysql_query("SELECT * FROM People");
echo "<table border='1'>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>";
$record = 1;
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $record++ . ") " . $row['Firstname'] . "\n</td>";
echo "<td>" . $row['Lastname'] . "</td>";
echo "<td>" . $row['Age'] . "</td>";
echo "</tr>";
}
echo "</table>";