i have a problem with a "foreach", this is the warning i get : "Warning: Invalid argument supplied for foreach() in c:\program files...." does anybody have an idea ??
Post your code, it sounds like the varaible you are using in th foreach is not an array. Rob
edit You could also try using print_r($variable_name); just before the foreach loop to check the nature of the variable;
this is it (but not quite complete) : foreach ($SESSdonnees_gen as $cle=>$val ) { $pdf->SetFont('times','I',12); $pdf->SetTextColor(0,0,0); $pdf->MultiCell(0,5,$val); $pdf->Ln(5); }
$SESSdonnees_gen is an array, a session variable