Welcome Guest, Not a member yet? Register   Sign In
ci shopping cart

how to store the items to the cart if the item are coming from database
here is the code of view file below which does not show me the items added to the cart.
else if($page_req=='shoppinglist') { ?>
<form action="<?=base_url()?>checkout" method="post">

<table><tr><td>Product Name </td><td>Price</td><td>Quantity</td></tr>
&lt;? foreach($this->cart->contents() as $items)


<td>&lt;? echo $items['pname']; ?&gt; </td>
<td>&lt;? } ?&gt; </td>

&lt;input type="text" name="qty"&gt;


&lt;? } ?&gt;
here is the controllers code below
else if($req=='shoppinglist')
$sqlselect="select * from shopping where id='$req'";
$query=mysql_query($sqlselect) or die(mysql_error());





$data['title'] = 'Ziplance Lab Hosting Service| Penny auction script | Dating script | Freelance script | Zip Lance Lab | Ziplancer';
$data['meta_keywords'] = 'Excellent Penny auction script, Ziplane lab product list.';
$data['meta_description'] = 'Zip Lance Lab providing excellent product at cheapest rate.';


Messages In This Thread
ci shopping cart - by El Forum - 06-25-2010, 01:43 AM
ci shopping cart - by El Forum - 06-25-2010, 03:01 AM

Theme © iAndrew 2016 - Forum software by © MyBB