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

2003-07-06 Thread arnaud gonzales
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 td class='$value'$row($key))/td; } TIA. zeg

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) { echotd class='$value'$key/td; //--^ } -Original Message- From: arnaud gonzales [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 20:51 To: Php-General Subject: [PHP] Warning: Invalid

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 td class='$value'$row($key))/td; } never used foreach()... but I would check

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) { echo td