euphoric Posted February 4, 2010 Report Share Posted February 4, 2010 Lieta tāda : izvadu no DB visus ierakstus iekš <TD> , bet vienā rindā pa četri, ka labak/pareizāk realizēt "echo <tr>" ? Paldies jau iepriekš Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 4, 2010 Report Share Posted February 4, 2010 (edited) <table> <tr> <? while(...) { $i++; echo "<td>ieraksts</td>"; if($i==4) { $i = 0; echo "</tr><tr>"; } }?> <? if($i>0) { echo "<td colspan='".(4-$i)."'></td>"; } ?> </tr> </table> Edited February 4, 2010 by EdgarsA Quote Link to comment Share on other sites More sharing options...
euphoric Posted February 4, 2010 Author Report Share Posted February 4, 2010 Liels paldies :) Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 4, 2010 Report Share Posted February 4, 2010 mmmh.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.