Re: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Philip Olson
On Sun, 6 Jul 2003, arnaud gonzales wrote: > Hi all, > I am getting crazy, can't understand what i missed! > Does anybody know? > > $champs = array ("titre_art" => "h3" ,"nom" => "bleu", > "prenom" => "green", "resume" => "bold"); > > foreach($champs as $key => $value) { >

RE: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Dave [Hawk-Systems]
>Hi all, >I am getting crazy, can't understand what i missed! >Does anybody know? > >$champs = array ("titre_art" => "h3" ,"nom" => "bleu", "prenom" => "green", >"resume" => "bold"); > >foreach($champs as $key => $value) { > > >echo "$row($key))"; > } never used foreach()... but I

RE: [PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread Sævar Öfjörð
Don't you think it should be like this? foreach($champs as $key=>$value) { echo"$key"; //--^ } -Original Message- From: arnaud gonzales [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 20:51 To: Php-General Subject: [PHP] Warning: Invalid argument supplied