Ver originalforeach ($result as $actual) { echo "<tr>"; echo "<td>" . $actual. "</td>"; echo "</tr>";}