Ok, I know it is something I am overlooking, but I have been at this for hours. I can't see to figure out what I am doing wrong. I have a very small database. 5 columns and 2 rows. I can connect to it and I can get the data to display. I just cannot get it to display in a table. I need it to display in 3 column table with the center column split into two rows. Here is what I have so far...
<html>
<table align="center" border="0" cellspacing="2" style="border-collapse: collapse" width="96%" id="table3">
<?php
$username = "***";
$password = "***";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
$selected = mysql_select_db("cars",$dbh)
or die("Could not select cars");
$query = "SELECT thumb, date, make, price FROM inventory";
$result = mysql_query($query);
while(list($thumb,$year,$make,$price)= mysql_fetch_row($result))
?>
<tr>
<td width="100" rowspan="2"><?php echo $thumb ?></td>
<td><?php echo $year ?></td>
<td rowspan="2" width="100"><?php echo $price ?></td>
</tr>
<tr>
<td><?php echo $make ?></td>
</tr>
</table>
</div>
</html>
Any help would be greatly appreciated.
White Wolf