August 7, 2008 at 4:26 am
#774892
Inactive
[PHP]function endElement($parser, $name ) {
global $insideitem, $tag, $title, $description, $link, $AFF_ID, $max, $count;
if ($name == “ITEM” && $count < $max) {
printf(“%s
“, trim($link).”&AFF_ID=”.$AFF_ID,htmlspecialchars(trim($title)));
printf(“%s
“, html_entity_decode(trim($description)));
$title = “”;
$description = “”;
$link = “”;
$insideitem = false;
$count++;
}
}[/PHP]
I have attached my test file below. Simply rename it as .php and upload it to your server. It should work.