On Tuesday 04 June 2002 00:52, James Kupernik wrote:
> yes because I'm using it in another foreach, but this one doesn't want to
> work.
>
>
> "Pierre-Alain Joye" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > On Mon, 3 Jun 2002 12:48:47 -0400
> >
> > "James Kupernik" <[EMAIL PROTECTED]> wrote:
> > > and I'm getting this:
> > > Warning: Invalid argument supplied for foreach()
> > >
> > > Why is that?
> >
> > are you sure $cart is an array ?

Try:

 print $cart; // would show 'Array' if array

Are you trying to use this in a function? If so have you declared it global?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
The first 90% of a project takes 90% of the time, the last 10% takes the
other 90% of the time.
*/


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

Reply via email to