I have a codeigniter view where "echo" statement is not displaying the output - this happens only from a specific loop that I am giving below. I have tried to run it through a sample for loop with echo statement inside; it works without issues. In the code block below $results is an array returned from the controller. I have tried writing the values of the array to a file and they get written correctly.
foreach ($results as $row) {
fwrite($myfile,$row[0] . PHP_EOL); //this writes perfectly fine
echo "<tr><td>TEst . $row[0] </td>"; //this doesnt show up
}
i have tried other threads in this forum with subject "echo not working" - they do not match my peculiar case. Any help is appreciated