I want to encapsulate this variable into the string, but I always get an error:
for($i = 0; $i < $_POST['rows']; $i++) {
echo "<tr>"
for($j = 0; $j < $_POST['columns'] $j++) {
echo "<td>$_POST['row{$i}column{$j}']</td>"; // << I get an error. Please help me encapsulate this.. I'm so confused.
}
}
The error is:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING