Forum Moderators: coopster
Search is localised to Gloucestershire in United Kingdom.
UK Postcodes are made up of 1 or 2 Letters followed by 1 or 2 numbers space followed by 1 or two numbers followed by two letters i.e. GL1 6UB, GL51 9SE etc)
At the moment it requires people to put just the first part of the Postcode (GL1 or GL51) however users being users I know that people will try and put in the whole postcode with or without the space in between the two sets.
Does anyone know of a way of allowing for this?
I am currently using the following mysql query $result = mysql_query("SELECT * FROM $table WHERE Postcode LIKE '$search' OR Town LIKE '$search'");
That way you should have at least 3 valid characters to match with.