Skip to content
Advertisement

Multiple Foreach Loop Codeigniter

I want to display data in different sections, but error when I run.

image

Controller

JavaScript

View

JavaScript

Advertisement

Answer

$tamu array variable get replaced $tamu string in first foreach so dont’t do that

working code is as below:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement