status stored has value 'LET, SALE, LET/SALE'
My php code does not return as expected, I wish if ($input['status'] = "SALE") will return 'SALE, LET/SALE' but it return only LET/SALE
I have tried to amend the code many ways, but can't work probably
if (!empty($input['status']))
{
{
    if ($input['status'] = "SALE");
    {
    if (is_null($where))
    {
            $where = "WHERE";
    }
    else {
            $where = "AND";
    }
$query .= " $where status LIKE '%".$input['status']."%' AND `selling` <= 
{$input['max_price']}";
    }
}
{
    if ($input['status'] = "LET");
    {
    if (is_null($where))
    {
            $where = "WHERE";
    }
    else {
            $where = "AND";
    }
$query .= " $where status LIKE '%".$input['status']."%' AND `rental` <= 
{$input['max_price']}";
    }
}   
}
I wish to query property LET or SALE at condition max_price. Lets say if query SALE with max 100,000 return results shall include SALE, LET/SALE with max_price less than 100,000
 
    