Hi! I'm trying to get a page where a picture shows on the left side of the page, and the results of my query in the right column in separate rows. I'm getting the first result to display correctly, the the subsequent results are trying to go the right of that. Can you help? The page (where you can see what's happening) is at: http://simpleplan4ever.com/DBClass/index2.php
My code at this point is:
$display_block = "
<TABLE WIDTH=\"100%\">
<TR>
<TD width=60% align=left>
<img src=\"store_images/frontpage.jpg\"
</TD>";
if (mysql_num_rows($get_cats_res) < 1) {
$display_block .= "<P><em>Sorry, there are no categories
to browse.</em></p>";
}
else {
while ($cats = mysql_fetch_array($get_cats_res)) {
$cat_id = $cats[id];
$cat_title = strtoupper(stripslashes($cats[cat_title]));
$cat_desc = stripslashes($cats[cat_desc]);
$display_block .=
"<TD width=40% valign=top align=left>
<p><strong><ahref=\"show_in_cat.php?c=$cat_id\">$cat_title</a></strong>
<br>$cat_desc</p><br>";
"</TD>";
}
"</TR>";
//close up the table
$display_block .= "</TABLE>";
}