Create table dynamically using php.


$rows = 20; // define number of rows
$cols = 6;// define number of columns

echo "";

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

    echo "";
        for($td=1;$td<=$cols;$td++){
               echo "";
        }
    echo "";
}

echo "
row: ".$tr." column: ".$td."
";
Share

Leave a Reply

Your email address will not be published. Required fields are marked *