$i += 1; $y += 1;
if( $i == 2){ $closetr = "</tr>"; if( $y == 2) $closetr = ""; $printvar .= "{$closetr}<tr>"; $i = 0; }