|
But btw, as it is in a loop, just do a counter, and do something like this:
$counter = 0;
while(whatever) {
if ($counter == 0) {
echo "<tr>";
}
echo "<td>post</td>";
if ($counter == 2) {
echo "</tr>";
$counter = -1; //to make up for the counter++ below
}
$counter++;
}
// next bit fixes it up, incase it just ends in <tr><td>post</td>
if ($counter == 1 || $counter == 2) {
if ($counter == 1) {
echo "<td></td>";
}
echo "</tr>";
}
}
something like that, anyway. and add <table>/</table>. that is if it is in a table, ofcourse
|