echo "<table><tr>"; $i=1; while ($mos=mysql_fetch_array($query)){ if ( $i==2 ){ echo '</tr><tr>' ; $i=0; } echo "<td>"; ?>la tabla con tu producto<? echo "</td>"; $i++; } echo "</tr></table>";