Sending variables while loading xml

I came across a great tutorial on here on how to output xml with php from a mySQL database. It’s a great little script and is very useful to load data into flash.

Only problem is, I need to query different things in the database everytime I call this script from flash.

So my question is, is there a way to send variables to the script (ie to change queries, table names) so that I could have it output different xml.

I can handle modifying all of the php, I just don’t know if there’s a way to send variable from flash to php in this way.

Thanks in advance