I'm attempting to use CodeIgniter to create a website, but PHP is giving me trouble. I'm confident that it is so obvious and cannot be flawed. But I'm new to CodeIgniter and have no idea where issues come from.
<?php foreach($result as $row):?>
<h3><? echo $row->title; ?></h3>
<p><? echo $row->text; ?></p>
I've a bug from this file :
A PHP Error was encountered
Message: Invalid argument supplied for foreach()
Line Number: 6
Can someone please help me with this?