this code
$table_rows = '';
foreach ($result as $row) {
$tr = '<tr>';
$tr = $tr . '<td>' . $row['crn_name'] . '</td>';
$tr = $tr . '<td>' . $row['crn_code'] . '</td>';
$tr = $tr . '</tr>';
$table_rows = $table_rows . $tr;
}
generates this output
<tr><td>forint</td><td>Ft</td></tr><tr><td>euro</td><td>€</td></tr>
It works, but the source code of the page looks terrible. I would like to produce a code which is much more easy to read. Somthing like that:
<tr>
<td>forint</td>
<td>Ft</td>
</tr>
<tr>
<td>euro</td>
<td>€</td>
</tr>
what should I do?!