\n"; $xmldoc .= "\thttp://ec1.images-amazon.com/images/P/" . $row['asin'] . ".01._SCMZZZZZZZ_.jpg\n"; $xmldoc .= "\t" . $row['title'] . "\n"; $xmldoc .= "\t" . $row['author_artist'] . "\n"; $xmldoc .= "\t" . $row['rating'] . "\n"; $xmldoc .= "\t" . $row['review'] . "\n"; $xmldoc .= "\n"; mysql_free_result($result); // include calls to my global DB disconnector header("Content-type: text/xml"); echo $xmldoc; // } } ?>