I am trying to select all rows which contains string $places in a colum ADDRESS. here is what I coded but it only works when a cell only contains that string if there is other characters it wouldn't work
$sql = "SELECT *,CONCAT(mapLan,',',mapLon) as LatitudeLongitude FROM " . $table . " where ADDRESS like '$places' and SIZE between $firstrange and $secondrange";
For example $places = "East London"
It would only select the row in which a cell only store East London and would leave alone the cells with Old Street, East London
What I want is to select all those rows which contains East London in Column ADDRESS
$placesfor example if it'sEast Londonit shouldn't show rows with onlyEastandLondonbut with full phraseEast London- Thanks$placesisEast London, the answer I gave you will never return rows that only containEastorLondon