I have the following string which I have to pass to mysql_query() function. This sting is generated dynamically when somebody tries to search some data in my site. Now the problem is there is no ending quotes after each word.
and purpose="Buy and property_type="Home and property_nature="Residential and city =" Lahore"
I want this string to be in this form:
and purpose="Buy" and property_type="Home" and property_nature="Residential" and city =" Lahore"
Thanks