Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
amit_thakkar
Visitor

Type Mismatch on referring php file instead of xml file

Hi
Earlier i was using like the code mentioned below i.e. i am giving reference to xml file which works perfectly.

conn = CreateObject("roAssociativeArray")
conn.UrlPrefix = "http://webserverIP/roku/"
conn.UrlCategoryFeed = conn.UrlPrefix + "/show001.xml"
conn.Timer = CreateObject("roTimespan")
conn.LoadCategoryFeed = load_category_feed1
conn.GetCategoryNames = get_category_names1

Now i want to make it dynamic by referring php file which will internally generate xml file as shown below where showSelection is the interger id of the show which is selected on the screen.
conn.UrlPrefix = "http://webserverIP/roku/"
conn.UrlCategoryFeed = conn.UrlPrefix + "/showname.php?id="+showSelection

When i check the o/p of both the file in browser, there's is no difference in the o/p file. The xml file content generated by php code is the same as the earlier referred xml file. But it is giving the error of Type Mismatch.

Kindly help how to solve this error.

Thanks
Amit
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: Type Mismatch on referring php file instead of xml file

If showSelection is an integer, that's the problem. You can't add an integer to a string, so you'd need to do showSelection.ToStr().
0 Kudos