[eluser]kazza[/eluser]
[quote author="vbsaltydog" date="1327035690"]As you can see in the output of var_dump, your property is empty.
FYI. You have bad code in your method and you are calling sql data in your view file which breaks the MVC design pattern.[/quote]
Code:
<?php echo $sqlquery;
foreach ($query->result() as $row)
{
?>
<div id="content_l" >
<?php echo "<img src='$row->image_lower' />" ?>
</div>
<?php
}
?>
<?php echo $sqlquery;
foreach ($query->result() as $row)
{
?>
<div id="content_r" >
<?php echo "<img src='$row->image_lower' />" ?>
</div>
<?php
}
?>
is this the correct way? still has error msg, and am not sure to change my property?