Originally posted by rachel2004
I guess there are several ways of handling this if you don't wish to change the way you are inserting values into your table. Here's one way:
$formal_name = "Micronesia Federated States of";
$short_name = "Micronesia";
$sql = "SELECT * from country where country_name like '%".$formal_name."%' OR country_name like '%".$short_name."%'";
[/B]
Thank you for your reply..
But i dont have that short name stored anywhere.. country format which are stored in database are as follows..
United states(USA)
Micronesia, Federated States of
and so on.. but what queary string i am passing is removing all the special characters.. like ")" "]" "," and so on.. so i am passing country name without any special charecters.. while databse is storing country name with special charecters..
Please guide me how to match these.. i can not change what is already stored in database..
Regards
Tabish