The error is probably coming from line 39 in the show_cart.php file
where you're using the array_count_values() function. I'm not sure why
it says line 55 in the error if that's the actual file you're using.
Read the manual page on array_count_values for a possible explanation.

www.php.net/array_count_values

---John Holmes...

> -----Original Message-----
> From: Steve Jackson [mailto:steve@;webpage.co.uk]
> Sent: Sunday, October 27, 2002 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Error?
> 
> here are the 3 files.
> the main problem i have is to adjust a shopping cart using a form
field so
> I'll send you all three pages. The output_fns page has display cart
and
> category functions. Show_cart page is the one where I'm getting the
error
> and product_fns has a calculation of the items in the cart.
> 
> 
> 
> > -----Original Message-----
> > From: John W. Holmes [mailto:holmes072000@;charter.net]
> > Sent: 27 October 2002 15:56
> > To: 'Steve Jackson'
> > Subject: RE: [PHP] Error?
> >
> >
> > Can you send me the entire file to look at?
> >
> > > -----Original Message-----
> > > From: Steve Jackson [mailto:steve@;webpage.co.uk]
> > > Sent: Sunday, October 27, 2002 7:14 AM
> > > To: Php-General
> > > Subject: [PHP] Error?
> > >
> > > I get the following error and I don't know why this is the code:
> > >
> > >  if($new)
> > >   {
> > >     $details =  get_product_details($new);
> > >     if($details["catid"])
> > >       $target = "show_cat.php?catid=".$details["catid"];
> > > //line 55 is the bracket below.
> > > }
> > >   $path = $PHP_SELF;
> > >   $path = str_replace("show_cart.php", "", $path);
> > >
> > >
> > > Error:
> > >
> > >  Warning: Can only count STRING and INTEGER values! in
> > > /www/u1255/shop_testing/show_cart.php on line 55
> > >
> > > Any ideas? all I'm trying to do is pass a qty from a form?
> >
> >



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to