I'm trying to create a multiplication table in PHP which goes from table 1 to 10.
But it's telling me there's an unexpected for loop on line 58. Is there anyone that could tell me how i could fix this? I'm trying to learn more about PHP. This is for a school project.
$math = 1;
$math_2 = 1;
$int = 0;
$int_2 = 0;
$table = 1;
for($go = 5; $int < $go; $int++) {
$table_1 = '<table style="float: left; width:15%">
<tr>
<th>Tafel van '. $table++ .'</th>
</tr>
<tr>
<td> '. $math .' * '. $math_2 .' = '
for ($start = 5; $int_2 < $start; $int_2++){
echo ''. ($math * $math_2) .'';
}'
</td>
</tr>
</table>';
echo $table_1;
$math++;
}