Grid View Table with data from database

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

echo "<tr>";

    $i = 1;

    foreach($records_insec AS $row){

        echo "<td>". $row->insec_name. "</td>"; 
              
            for($j=1; $j<=($count_insec/2); $j++){

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

                    echo "</tr>";

                    if ($i  % 4 == 0){

                        echo "<tr>";

                    }

                }

            }    $i++;
      
    }
  
    echo "</tr>";

echo '</table>'; 



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

0 comments: on "Grid View Table with data from database"

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