Hi All, edited this as I had a thought. A better way to do this is;
1. Strip the UK postcode down to the first 1 or 2 letters
2. Match that string against an 'exclude' list, e.g. pseudo code
Code:
if ($record = 'HP' OR 'AL' OR 'LU') {
$update = mysql_query("UPDATE proposer SET outcode = '1'");
}
if ($record = 'OX' OR 'NN' OR 'CB') {
$update = mysql_query("UPDATE proposer SET outcode = '2'");
}
and so on.
3. Then when It comes to extract info, all I need to do is order on the new outcode field?
Therefore the question would be what would I construct as the regexp initially in step 1? I have the following;
http://www.govtalk.gov.uk/gdsc/html/frames/PostCode.htm
and as well as a regexp, from the same site
http://www.govtalk.gov.uk/gdsc/schem...stCodeType.htm
Any ideas? im stil playing