if($_POST["age"] != "")
{
if($_POST["age"] == '1')
{
$query_pt .= "AND age BETWEEN '15' and '25'";
}
elseif($_POST["age"] == '2')
{
$query_pt .= "AND age BETWEEN '20' and '30'";
}
elseif($_POST["age"] == '3')
{
$query_pt .= "AND age BETWEEN '25' and '35'";
}
elseif($_POST["age"] == '4')
{
$query_pt .= "AND age BETWEEN '30' and '40'";
}
}