Are you getting an error? or just the wrong results?Is "district_zone NOT LIKE '0'" really a condition that gives you everything?this is a wild shot... but how about:if ($_POST[district_zone] = '0') { $query_rs_district = "SELECT district_zone, district_name FROM property_districts WHERE district_zone NOT LIKE '0'"; } else { $query_rs_district = "SELECT district_zone, district_name FROM property_districts WHERE district_zone = '$_POST[district_zone]'";}or $query_rs_district = "SELECT district_zone, district_name FROM property_districts WHERE '0'='$_POST[district_zone]' or district_zone = '$_POST[district_zone]'";
Corey
snSQL on previous signature "...Oh and by the way Seventhnight, your signature is so wrong! On so many levels, morally, gramatically and there is a typo!"