Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php table

<?php
$rows = 10; // define number of rows
$cols = 4;// define number of columns

echo "<table border='1'>";

for($tr=1;$tr<=$rows;$tr++){

    echo "<tr>";
        for($td=1;$td<=$cols;$td++){
               echo "<td>row: ".$tr." column: ".$td."</td>";
        }
    echo "</tr>";
}

echo "</table>";
?>
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #php #table
ADD COMMENT
Topic
Name
8+3 =