Coding error ?
Posted: Wed Apr 07, 2010 10:52 am
Hi
I get the following error message on posting:
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/output_fns.php on line 536
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/db_fns.php on line 78
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/db_fns.php on line 78
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/output_fns.php on line 558
These are the relevant codes for each line ABOVE - in order;
foreach ($img_array as $row) {$ref = stripslashes($row['ref']); $img = stripslashes($row['img']); }
foreach ($array as $row) $counter = $counter+1;return $counter;}
foreach ($array as $row) $counter = $counter+1;return $counter;}
foreach ($img_array as $row) {
$ref = stripslashes($row['ref']);
$img = stripslashes($row['img']);
$esp = stripslashes($row['descrip_esp']);
$engl = stripslashes($row['descrip_engl']);
$alem = stripslashes($row['descrip_alem']);
Can anyone see any obvious error that I have made in the code?
The PHP is version 5.2.8
Many thanks
Jack
I get the following error message on posting:
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/output_fns.php on line 536
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/db_fns.php on line 78
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/db_fns.php on line 78
Warning: Invalid argument supplied for foreach() in /home/alpusol/public_html/auth/output_fns.php on line 558
These are the relevant codes for each line ABOVE - in order;
foreach ($img_array as $row) {$ref = stripslashes($row['ref']); $img = stripslashes($row['img']); }
foreach ($array as $row) $counter = $counter+1;return $counter;}
foreach ($array as $row) $counter = $counter+1;return $counter;}
foreach ($img_array as $row) {
$ref = stripslashes($row['ref']);
$img = stripslashes($row['img']);
$esp = stripslashes($row['descrip_esp']);
$engl = stripslashes($row['descrip_engl']);
$alem = stripslashes($row['descrip_alem']);
Can anyone see any obvious error that I have made in the code?
The PHP is version 5.2.8
Many thanks
Jack