im having a problem displaying information im pulling from a mysql database. the problem isn't with the database, but with displaying the info.
im trying to make a table with 4 columns no matter what, but depending on how much information is present in the db, as many more rows as needed.
so if i had 4 pieces of info, it would be one row, but if i had 8 pieces of information, there would be 2 rows, each with 4 columns.. get it?
anyways, here's some of my code. if someone could help me try to figure this out, i'd appreciate it. thank you
if ($i <= 4)
{
$i++;
echo "<td valign=top width=185><a href=releases.php?id=".$row["id"]. "><img src=images/covers/100/".$row["cover100"]. " width=100 height=100 border=0><br><b>".$row["band"]. "</b><br><i>".$row["title"]. "</i></a></td>";
}
}
echo "</tr></table>";