Re: foreach
| From: | James Kupernik | Date: | Tue, 04 Jun 2002 19:02:00 +0000 |
| Subject: | Re: foreach | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19603@lists.php.net to get a copy of this message | ||
found my problem .. thank you for your help! You guy put me in the right
direction to solve this problem.
Thanks!!
"Jason Wong" <phplist@gremlins.com.hk> wrote in message
news:200206040110.43291.phplist@gremlins.com.hk...
> 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" <paj@pearfr.org> wrote in message
> > news:20020603184925.67431dc9.paj@pearfr.org...
> >
> > > On Mon, 3 Jun 2002 12:48:47 -0400
> > >
> > > "James Kupernik" <kupernik@bcn.net> 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.
> */
>