Re: foreach

From: Date: Mon, 03 Jun 2002 17:10:43 +0000
Subject: Re: foreach
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-19589@lists.php.net to get a copy of this message
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. */

« previous php.db (#19589) next »