F
Faevilangel
- Original Poster
- #1
I like to dabble in PHP and am dabbling with a soap based php script, and getting an error that I can't fix.
Warning: Invalid argument supplied for foreach() in /home/garethgi/public_html/aws/books.php on line 120
The code for the error is:
Any help would be appreciated
Warning: Invalid argument supplied for foreach() in /home/garethgi/public_html/aws/books.php on line 120
The code for the error is:
Code:
foreach ($items as $i)
{
?>
<tr>
<td align="center" valign="top" rowspan="3"><a href="book_detail-<? echo $i['Asin'].".php";
?>"><img border="0" src=<? echo $i['ImageUrlSmall']; ?>></a></td>
<td><font size="-1"><b><a href="books_detail-<? echo $i['Asin'].".php";
?>"><? echo $i['ProductName']; ?></a></b> / <? echo
implode(", ", $i['Authors']); ?></font></td> </tr> <tr> <td align="left"
valign="top"><font size="-1">Retail Price: <strike><? echo $i['ListPrice']."</strike> <b>Our Discount Price: ".$i['OurPrice']; ?></b> USD </font></td> </tr> <tr> <td
align="left" valign="top"></td> </tr> <tr>
<td colspan=2> </td> </tr>
<?php } ?>
Any help would be appreciated