Okay I did your thing and it only printed out 22 entries and made them all a td which means they printed sideways. What I have is like 50 entries and want two rows of 25
Do I set $i to anything?
Basically the html looks like this
<table>
<tr>
<td>
all the query coding etc goes here with the for statement blaH BLAH and the if statement and list ()
etc etc etc which prints out
<table>
<tr>
<td>
$results
</td>
</tr>
</table
then all loop closes etc
}
Further down then the table is closed out
</td>
</tr>
</table>
I used something like this with the code Astaran posted above so basically if what you are saying is correct that code I posted in that if statement would give me 2 rows right?
if ($i < ($rows / 2)) {
echo <<< UNSPRINT
</td>
<td align="center" class="lighttable">
UNSPRINT;
}
else {
echo <<< UNSPRINT
</td>
<td align="center" class="lighttable">
UNSPRINT;
}
The page is 100% XHTML valid so its not bad html