some additional notes on the problem...

    experts,
  
  question: i have this cart in a file say in shopcart.php this file just only show the contents of the cart.
  
  in another file i have this class
  
  class Cart {
        function check_item($table, $session, $product) {
    ...
  
  }
  
  function delete item {
  
  ...
  
  }
  }
  
  each of my page that uses the cart has this init
  
  $scart = new Cart;
  
  in other pc view categories and other product all over the pages will not erase/empty the cart but in other pc that i have tried it is working.. would i try creating another table on the database and perhaps implement this algo >
  
  if( NOT (session is registered and is on db))
  then $scart = new Cart;
  
  any other implementation on this?or any other idea?
  
  thanks in advance.
  
  ~kray
  
  
  if i would comment out $scart = new Cart;
  this following line in almost all of the page will get error
  
  echo  "<b>".$cart->num_items($table, $session). "</b> item(s) = ";
echo "<b>$". $cart->cart_total($table, $session) ."</b>";



              __  _
        ____ |  |(_)
      /     ||  | __  _      ,_  _______
   |    -- |  ||  |>  \/'\/  ||   __  |
      \   \  |  ||  ||  +-+-+  ||   ___/
    /+__\   \|  ||  ||  | | |  | \  \
  <           >         copyryt 2003 (r)


Send instant messages to your online friends http://uk.messenger.yahoo.com

[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.



SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life
American general mortgage American general life insurance Computer internet security


YAHOO! GROUPS LINKS




Reply via email to