Welcome Guest, Not a member yet? Register   Sign In
Why this error appears stdClass::$pic_item?
#9

I finally get the answer but still cannot explain my own answer if anyone can help me explain this codes out:

<?php foreach($pic as $pic_item): ?>
<img src="<?php echo base_url('assets1/images/slider/'.$pic_item->galleries_picture_name);?>">
<?php endforeach;?>

First, do I really need the foreach loop? Second, why $pic_item->galleries_picture_name works?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
RE: Why this error appears stdClass::$pic_item? - by davy_yg - 03-02-2017, 12:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB