Hi everyone,
I'm trying to create a filter that requests data from a table and outputs it into xml.

I've been introduced to the $query = "SELECT something FROM table WHERE some value"
however I'm confused as to how I can do that when the request from the cient side is
something like: BAR, in DOWNTON for date JULY 11, where entrance is LESS THAN 10.

I have a simple code that I'm trying to get to work with an html page with no luck. I've
searched google for two days straight but found nothing concretely for a begginer like me.
If you have the time and/or some examples that you can point me to, I'd be thankful.

Here's what I have:

$query = "SELECT * FROM events WHERE Location='downtown'";
$result = mysql_query($query);
if (!$result) {
die('Invalid query: ' . mysql_error());

Thanks a lot!