foreach invalid argument supplied and mysql fetch array issue
- by La Myse
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..