Grid View Table Php

<?php

echo '<table border="1" width="50%">';
echo "<tr>";

    for($i=1; $i<=10; $i++){

        echo "<td>". $i . "</td>";   
       
            for($j=1; $j<=(10/2); $j++){

                if ($i / 4 == $j){

                    echo "</tr>";

                    if ($i % 4 == 0){

                        echo "<tr>";

                    }

                }

            }
    }
echo "</tr>";
echo '</table>';

?>



Took me awhile with the <TR> opening tag and closing tag... haist!!





Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

0 comments: on "Grid View Table Php"

:) ) ;) ) ;;) :D ;) :p :( ( :) :( :X =(( :-o :-/ :-* :| 8-} :) ] ~x( :-t b-( :-L x( =))
Post a Comment