Create table dynamically using php. Leave a reply $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 "row: ".$tr." column: ".$td.""; } echo ""; } echo "";