$tablecode1 = "<table>"; $column = 3; $rows = 2;
for ($m=1; $m<=$column; $m++){
$tablecode1.="<tr>"
for ($n=1; $n<=$rows; $n++){
$tablecode1.="<td>$n-$m</td>";
}
$tablecode1.="</tr>";
}
$tablecode1.="</table>";
echo "$tablecode1";
Parse error: syntax error, unexpected 'for' (T_FOR) in line @ second for
The first $tablecode1
should have value of "<table>"
. idk why it didnt show up.