Hi All, I have one mysql table that inserts sent data, name, address, full UK postcode. They want to pull out daily results that are near to their locale, select on a limit of LIMIT 150. They dont want to do this by specifying a radius, but instead by specifying the out postcode, like CO or LU or LE etc... they would then need the result sorted on rank - nearest first, furthest last
Would i have to get php/mysql to give each postcode a ranking on insertion, based on a regexp match on the first 1/2 charccters of the code, or is there a better mysql query that will work?
Vague - yes. Any takers?