Jump to content

xml feed syntax problem


e1seix

Recommended Posts

oh, it's probably just my age, but i use an xml feed etc.

 

$xml = simplexml_load_file('http://content.webgains.com/affiliates/datafeed.html?action=download&campaign=xxxxxxx&[email protected]&password=xxxxxxx&format=xml&zipformat=none&fields=standard&programs=347&categories=1234');

 

so i want to manipulate the category (1234) at the end of the feed using $ID=$_GET[iD]; from address bar, but I can't seem to make it stick for some reason. i thought this would work, but it doesn't

 

$xml = simplexml_load_file('http://content.webgains.com/affiliates/datafeed.html?action=download&campaign=xxxxxxx&[email protected]&password=xxxxxxx&format=xml&zipformat=none&fields=standard&programs=347&categories=".$ID."');

 

any help? i'm sure it's just a syntax problem. i want to do it this way instead of having to use if/else statement cos it'll take forever to write.

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/122755-xml-feed-syntax-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.