06-06-2012, 05:15 AM
[eluser]the_unforgiven[/eluser]
Hi all,
I'm getting the following error:
On or around the above mentioned line is this:
This is the shopping cart for Claudia's Kids but ive changed some of it like instead of having $_SESSION has Ci didn't like it changed to $this->session->...... can someone hlep me please?
Thanks.
Hi all,
I'm getting the following error:
Code:
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: inc/header.php
Line Number: 76
On or around the above mentioned line is this:
Code:
<img src="<?php echo base_url(); ?>images/bag.png" width="29" height="29" alt="Cart" /> You have: <a href="<?php echo base_url(); ?>">
<?php $cart = $this->session->userdata('cart');
if (count($this->session->userdata('cart'))){
$count = 1;
foreach ($this->session->userdata('cart') as $PID => $row) {
echo $row['count'];
}
}
?>
</a> <span>items in your cart</span>
This is the shopping cart for Claudia's Kids but ive changed some of it like instead of having $_SESSION has Ci didn't like it changed to $this->session->...... can someone hlep me please?
Thanks.