I am getting error message: Invalid argument for foreach() in my View. I wanted to display all entries in my mysql table but i kept on getting error message. I am a newbie i
The query in your model is returning either string or object data, instead of an array. The 'foreach' loop function accepts an array as its first argument.