Thanks for you code "TheDefender",
It worked great with your array.
This is probably so easy but I still don't know how to make this work properly.
This is what I need:
//mySQL select statement:
$sql = @('SELECT str_PName, str_SiteURL FROM partner WHERE int_Show = 1 ORDER BY dat_DateEntered DESC');
// This should be an array right?
$row = mysql_fetch_array($sql);
The results need to be sorted like this:
<tr>
<td><a href="str_URL">str_PName</a>
</td>
<td><a href="str_URL">str_PName</a>
</td>
<td><a href="str_URL">str_PName</a>
</td>
</tr>
and so forth.
In this order (until it runs out of rows and empty cells need to be filled in with non-braking spaces.
str_PName1==str_PName7==str_PName13
str_PName2==str_PName8==str_PName14
str_PName3==str_PName9==str_PName15
str_PName4==str_PName10==str_PName16
str_PName5==str_PName11==str_PName17
str_PName6==str_PName12==nbsp
Thanks for your patience and very helpful assistance.