$query="select * from tabla where a=a ";if (radio1==true){$query.=" and b=b ";}if (radio2==true){$query.=" and c=c ";}