Hi,
first of all, I'd suggest to have a look at the select statement as described in www.mysql.org.
But yes. You'd have to put the tablenames in the select query. The post I gave was to give you a start-off point, and not the full query.
so it would start off with:
"Select * from site, circuit, site_circuit where ckt_id = $id"
Nice of this:
You can leave ouyt checking for the first set of queries: You can just continue with:
if (!empty($country))
{
$query .= 'and country = $country";
}
if(!empty($State)
{
$query .= ' State = $State";
}
Sorry for the confusion.
J.