Output of MySQL data

Hi,

I know this will sound like a very straightforward thing to everyone else, but I am having trouble with it.

I have a database that I can retrieve the info I want from it, but I am having trouble arranging the data into columns. What I have is a table with 9 fields that I want to display in one column for the first result. Then I want the next result to show in a column next to it.

I want to arrange the table with the results in a table with 3 columns max per row and as many rows as needed. I just can seem to figure it out, the results always come back in one column.

This is the code I’m currently using:


 echo "<td width='200'>". "<h1 align='center'>". $head ."</h1>" ."</td>";
 echo "<tr>";
 echo "<td align='center'>". "<img width='105' src='../". $image ."'></td>";
 echo "</tr>";
 echo "<td align='justify'>". $body ."</td>";
 echo "</tr>";
 echo "<tr>";
 echo "<td align='left'>". "Last Updated on the ". $day ." of ". $month .", ". $year ."</td>";
 echo "</tr>";
 echo "<tr>";
 echo "<td align='left'>". "<a href='dog_view.php?id=$id'>Click to View</a>" . "</td>";
 echo "</tr>";
    }
    echo "</table>";

Any help would be great.

Thanks

Loo