foreach invalid argument supplied and mysql fetch array issue
Posted
by
La Myse
on Stack Overflow
See other posts from Stack Overflow
or by La Myse
Published on 2012-06-23T21:08:42Z
Indexed on
2012/06/23
21:16 UTC
Read the original article
Hit count: 147
i have this code which i use to print some fields from the database.
My problem is that i get this error about foreach invalid argument supplied and a mysql fetch array problem.
The code is this:
foreach( $checked1 as $key => $value){
echo "<th> $value </th>";
}
echo "</tr></thead>";
while($row = mysql_fetch_array($result)){
Where $checked1
is an array
$checked1 = $_POST['checkbox'];
What's the problem here?
Thanks..
© Stack Overflow or respective owner