where/filter records using URL string

28 posts by 3 authors in: Forums > CMS Builder
Last Post: August 17, 2010   (RSS)

By s2smedia - August 17, 2010

its being pulled onto the index page through a flash file which in pulling the data from an xml.php doc

Re: [s2smedia] where/filter records using URL string

By Jason - August 17, 2010

Hi,

Okay, I don't actually see that in the code, but you could try to add the query string to the xml.php file where you're calling it:

xml.php?createdByUserNum=NUM

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By s2smedia - August 17, 2010

that works but I would have to hard code the UserNUM in there so for example if your looking at:

index.php?club_name=CASL&createdByUserNum=3


and the xml is set to num=2, it will show the wrong data...

i guess I need some kind of code on the php header code in the xml

Not sure if that is possible

Re: [s2smedia] where/filter records using URL string

By Jason - August 17, 2010

Hi,

You shouldn't need to hard code it. You can insert php directly into the html you're writing like this:

xml.php?club_name=CASL&createdByUserNum=<?php echo @$_REQUEST['createdByUserNum'];?>

This will take whatever number is in the url string and add it to the end of that url string.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By s2smedia - August 17, 2010

its a actionScript file calling the xml file...

can i rename it to be as.php?

Re: [s2smedia] where/filter records using URL string

By Jason - August 17, 2010

Hi,

If you could show me the code you're using and tell me what file that's inside, I can take a closer look.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [s2smedia] where/filter records using URL string

By Chris - August 17, 2010

Hi s2smedia,

I'm afraid we can't offer support for ActionScript code.

I've done something similar before and it was non-trivial. You can find a few tutorials on how to pass information into ActionScript if you search Google for FlashVars. It's also possible to pass information in via the query string.

I hope this helps! Sorry we couldn't help more.
All the best,
Chris