I get a notice when running this code to take our database info off of amazon and to convert to a pdf file for printing the order form with barcode....
notice: undefined index: details in /var/www.........line 92
// use SOAP to get the author based on the isbn
// include class
include("/var/www/html/nusoap/nusoap.php");
// just select the isbns for orders that haven't been output yet
$OFresult = mysql_query("SELECT isbn from orderfulfillment WHERE output = ' '");
while ($OFoutput = mysql_fetch_array($OFresult)){
$asin = $OFoutput["isbn"];
// create a instance of the SOAP client object
$soapclient = new
soapclient("http://soap.amazon.com/schemas3/AmazonWebServices.ws dl",
true);
// create a proxy so that WSDL methods can be accessed directly
$proxy = $soapclient->getProxy();
if(!$err = $soapclient->getError()) {
// get items from the catalog
$catalogParams = array(
'asin' => $asin,
'tag' => 'magersandquinn',
'type' => 'lite',
'devtag' => 'D1K67PU83NLMNN'
);
$catalogResult = $proxy->AsinSearchRequest($catalogParams);
$catalogItems = $catalogResult['Details'];
if ($catalogItems) {
foreach ($catalogItems as $j)
{
// Authors is an array
$authors = $j['Authors'];
// if there is at least one author
if ($authors[0]) {
// get the first author from the array
$author = $authors[0];
} else {
// if author lookup fails set to default string
$author = ' ';
}
}
$inputAuthor = mysql_query("UPDATE orderfulfillment SET author=' $author' WHERE isbn = $asin");
line 92 is the line stating $catalogItems = $catalogResult['Details']; don't know how much code needed to help this problem but let me know and I can send more on either end of this part of the code to help view more to the problem....
random I know.... just stuck if anyone has any idea i would be happy to try it.
thanks
fedora(hard)core2