I have scoured the internet and cannot find a PHP code sample that lets you display the rows horizontally.
A common code is like this:
Code sample:
while ($rows = mysql_fetch_object($result))
{
echo "<tr><td>$rows->cat_name</A></td></tr>";
}
and it display like this:
Appliances
Autos
Books
Clothing
Appliances
Books
Easy... BUT... I want to display it like this:
Appliances Autos Books Clothing
Clothing Appliances Books Autos
And I can't figure out how to do that and how do I break and create a new line after every forth (or Nth) data? Does it make sense to you? I can't figure out how to do that with mysql/php code.
-jeff