i can't get his function to work.  i pass the correct data to it...but no 
results....

heres the function

        function display_contents($table,$session)
        {
                $count = 0;
                $result = mysql_query( "SELECT * FROM $table WHERE 
session='$session'");
                        while($row = mysql_fetch_array($result)){
                                $result_inv = mysql_query( "SELECT * FROM 
retailseafood WHERE 
pid='$row[items]'");
                                $row_inventory = mysql_fetch_array($result_inv);
                                $contents[ "items"][$count] = $row_inventory[pid];
                                $contents[ "price"][$count] = $row_inventory[price];
                                //$contents[ "quantity"][$count] = $row[quantity];
                                $contents[ "total"][$count] = ($row_inventory[price] * 
$row[quantity]);
                                $count ++;
                        }
                $total = $this->cart_total($table,$session);
                $contents[ "final"] = $total;
                return $contents;
        }
        // return number of items in cart

and heres what i do to call the function

<A href="cart.php?action=display">View Contents Of Cart</A>

what or where am i doing/going wrong?

~kurth


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to