problem in shopping cart.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahia307
    New Member
    • Jun 2007
    • 32

    #1

    problem in shopping cart.

    i developed session based shopping cart. using this code.

    Code:
    	$_SESSION['cart'][]= array( 'prd_name' => $prd_name, 'unit_price' => $unit_price,
    	'qty' => $qty, 'id_prd' => $id_prd);
    and i use this code to display values placed in session.

    Code:
    foreach($_SESSION['cart'] as $key=>$value){
    echo $value['prd_name'];
    echo $value['qty'];
    }
    Now my question is that. How can i update values placed in a session. i other words how can i update my shopping cart
    Last edited by Markus; Nov 25 '08, 02:48 PM. Reason: added code tags
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Please use [code] tags, not [b] tags.

    Moderator.

    Comment

    Working...