Don't you think it should be like this?
foreach($champs as $key=>$value) {
echo"<td 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 argument supplied for foreach()
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php