View Single Post
Old 01-30-2007, 11:52 AM  
scouser
marketer.
 
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
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

Last edited by scouser; 01-30-2007 at 11:53 AM..
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote