Post code search

Bear with me...
I have a MySQL table which contains a list of cities, the URL
of their corresponding image (ie a pic of that city) and the first
letters of the post codes of that city (eg CF for Cardiff, B for
Birmingham).
I have a search form which allows users to search for
businesses by name and city or postcode.
I want to insert a dynamic image of the city searched for. So
far, if the user types "Cardiff" or "cardiff" or "car", the correct
image appears. If he types "CF" or "cf", he gets the right image.
BUT if he types "CF24 4AA", he gets nothing.
In the query advanced panel the SQL looks like this:
SELECT *
FROM cities
WHERE cityforpic LIKE TownPic% OR PostCodeStart LIKE PostC%
Both variables TownPic and PostC are text, GET their data
from the same text field, and are set to default value -1.
So what am I doing wrong???????
I am wellllllll past my deadline on this one, so any URGENT
help greatly appreciated and will be rewarded with cyber-cocoa and
biscuits! ;-P

Hi mate,
I have had major problems in this field too.
I found this on the net:
http://www.pc-i.co.uk/postcode-distance.php
I hope it helps.

Similar Messages

  • Post code search for N82 maps

    Does any one know how i can do a post code search in the uk for my nokia maps, it only seems to accept american zip codes. Every post code i tryed didnt work.
    Cheers

    If you allow nokia maps to connect to the internet it will search online for detailed information. If you don't allow it to connect it will only search the less detailed info thats included with the maps, this is called searching offline.
    When you run nokia maps it should ask you if you want to go online. Yes allows it to connect, no doesn't allow it to connect.
    If it doesn't ask you go to options > Tools > Go online
    Searching online can incur data charges if data is not included in your tariff.

  • Additional field post code 2 in search in webui

    Hi,
    I am new to crm webui.I need to add the additional field post code to search this field is not available in the context node but is a standard feature.Please tell me step by step.
    P.S points will be awarded.

    The good news is that the field is in the underlying search function module used by Business Partner Search.
    All you need to do is the following:
    Add the field
    POST_CODE2 data element AD_PSTCD2 to the structure CRMST_HEADER_SEARCH_BUIL.
    This should magically make the element available for search and you will only need to configure your screen to have the element bound beyond the context node config.
    I believe this should work, based on looking at the code used for the BP search.
    Good luck,
    Stephen

  • Vendor Master post code control in drop down option.

    Hi,
    I want to control In Vendor master drop down option, post code should not display in drop down for particular account group.
    How I can control in drop down option.
    Please help me.
    Br,
    Hanuman.

    Hi,
    As per your requirement, you want supress the drop down specific to the account group for given filed.
    Basically F4 option is coming from the search help defined for that specific field not by the account group. So as long as the serch help designed to that field it will always comes. You can not control that from any field selection keys.
    I hope you understand the concept of search help.
    Thanks,
    Satya.

  • Blackberry Maps & UK Post Codes

    I'm struggling to  make the most of Blackberry Maps on my 8520.
    When I try to search for an address using a post code, it only recognises the first 4 or 5 characters depending on whether its a 6 or 7 figure post-code. So when I try to put in my home address it locates a place 3 miles away from where I actually live.
    When i try to enter town and county I keep getting a message saying they are not recognised.
    I have only managed to save my location by manually finding it on the map.
    Any advice please - and is there a Blackberry Maps instruction manual anywhere??

    http://us.blackberry.com/smartphones/features/blackberry_maps_detail.jsp
    http://www.knowyourmobile.com/smartphones/rim-blackberry/blackberry-guides/344267/how_to_set_up_and_...
    teffers wrote:
    Any info on why the Blackberry won't accept the last 2 digits of a post-code when trying to find an address? 
    Its not sufficiently accurate.
    Blackberry Best Advice - Back-up weekly
    If I have helped you please check the "Kudos" star on the right >>>>

  • Post Code

    Hi
    I'm using a text index to store a UK post code. I'm removing spaces so storing "LU2 9UH" as LU29UH in the text index to improve search speed performance.
    This is fine but users want to know if they can still enter the space and get the same results. They can not.
    What I would like is for a search:
    "Fred Smith LU2 9UH" to be parsed as
    "Fred Smith LU29UH"
    I think I can do this with Regular expressions but UK postcodes vary and are in the format
    A9 9AA
    A99 9AA
    A9A 9AA
    AA9 9AA
    AA99 9AA
    AA9A 9AA
    I was wondering if anyone has already done this? I'm using 10g rel1 so can make use of the regexp_like and regesp_replace etc
    Phil

    This is how you could transform the postal code, however I'm not sure if that get's you any closer to your solution (tested on 10g1):
    WITH t AS (SELECT 'A9 9AA' pcode
                 FROM dual
                UNION
               SELECT 'A99 9AA'
                 FROM dual
                UNION
               SELECT 'A9A 9AA'
                 FROM dual
                UNION
               SELECT 'AA9 9AA'
                 FROM dual
                UNION
               SELECT 'AA99 9AA'
                 FROM dual
                UNION
               SELECT 'AA9A 9AA'
                 FROM dual
                UNION
               SELECT 'LU2 9UH'
                 FROM dual
    SELECT t.pcode, REGEXP_REPLACE('Fred Smith ' || t.pcode, '([A-Z]+[0-9].*) ([0-9]+[A-Z]*)', '\1\2')
      FROM t;                    C.

  • How do I post code snippets?

    I spotted some discussion about posting code snippets.  However, even those discussions themselves seem to be incorrectly formatted.  So, perhaps apple has changed it's discussion formatting. 
    What's the recommended way to quote code in a discussion?

    I know this is old old... but this comes up in google when searching "apple forums code snippets"
    I forgot, and managed to figure it out again... the forums are based on Jive forum software, and these use css classes and custom attribute names etc to pre format things like quotes and code snippets.
    While there isn't a button to do this in the editor, what you can do instead is use the quote button then go to HTML mode and edit it's classes to change the first part of the tag from this:
    <pre class="jive_text_macro jive_macro_quote" jivemacro="quote">
    to
    <pre class="jive_text_macro jive_macro_code" jivemacro="code">
    which changes this:
    ls -al /var/log/*.out
    sudo periodic daily weekly monthly
    to:
    ls -al /var/log/*.out
    sudo periodic daily weekly monthly
    The main difference being forced monospaced font and lack of softwrapping... good for code.

  • 790FX-GD70 - FREEZES ON POST CODE "08"

    Hi
    I have just made a new build on a new 790FX-GD70 winki board - on initial start up it's freezing on the POST code "08". Nothing is showing up on the screen at all. Apprently this means:
    08
    Initializes the CPU. The BAT test is being done on KBC. Program the keyboard controller command byte is being done after Auto detection of KB/MS using AMI KB-5.
    (according to http://www.ami.com/support/doc/AMIBIOS8_Checkpoint_and_Beep_Code_List_PUB.pdf)
    The trouble is i just don't know what that means I should do - without anything on screen to go by!
    My system is
    MBD:  790FX-GD70
    CPU: PHENOM II X3 720 2.8GHZ BLACK SKT AM3 7.5MB 95W PIB
    RAM: 2gb from: Corsair Dominator XMS3 4GB (2x2GB) DDR3 1600C9D Twin3X (TW3X4G1600C9D)
    GRAPHICS CARD: SAPPHIRE ATI RADEON HD 4770 512MB GDDR5 TV-OUT/DUAL DVI HDMI PCI-EXPRESS - RETAIL
    PSU: 650W BeQuiet Dark Power Pro Modular PSU BN073
    Any help or ideas would be really great as i'm totally at a loss.....!?

    Quote from: Henry on 07-September-09, 18:24:45
    ... What PSU model and amps for +12V rail(s)...

  • "Post code Incorrect" error while Posting Invoice !!

    Hi,
         While posting an invoice for a PO , using transaction MIRO , I'm getting the error message as " Post code incorrect - please check document header field".
    Any help on this is highly appreciated.
    Thanks,
    Arvind

    If a postal code is correct or not is defined in rules set in county definition. Here the length and certain other criterias can be checked. SAP programs the logic based, you choice is to do the checks or not
    So somebody might have changed the customizing after the vendor was created.
    I guess you get the same error if you go in cahnge mode into the vendor master and change any field and try to save.

  • Post code in delivery address when creating PO

    Hi friends,
    when creating PO, the post code field under delivery address tab is a required field. while some of our delivery address do not has post code. it seems a mandatory filed.
    How could I change it to a optional field.
    Thanks,
    Linda

    Ask your ABAPer to assist you on this.
    Path to Screen Variant
    Choose Basis Components - Application Personalization - Tailoring of Application Transactions - Configure Transaction-Related Display Values for Fields
    Screen variants allow you to simplify screen editing by:
    Inserting default values in fields
    Hiding and changing the ready for input status of fields
    Hiding and changing the attributes of table control columns
    A screen variant contains field values and attribute for exactly one screen. A screen variant may be assigned to multiple transaction variants, however. Screen variants are always cross-client; they may, however, be assigned to a client-specific transaction. They can also be called at runtime by a program. The different possibilities for calling screen variants guarantee great flexibility of use. A specific namespace has been designated for screen variants and they are automatically attached to the Change and Transport System.
    Check following lInk:
    http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation
    Thanks & Regards
    JP

  • HPE-170f suddenly starts giving POST codes at power on.

    HPE-170f  AY604AA#ABA  Windows 7 Home Premium  64-bit
    HPE-170f suddenly starts giving POST codes at power on.
    Have Logitech solar blue tooth keyboard  and Logitech bluetooth trackball.
    POST code is short, short, long ... if anyone remembers what that means.
    Have been randomly successful at continuing boot after connecting USB keyboard and disconnecting all other USB devices and then  holding ESC while turning on.  Not 100%, but works mostly.
    I have no idea if anything USB is actually causing.
    After boot starts and WIN is loaded, everything else seems normal.
    Any suggestions?
    Thanks, dtipton

    Hi,
    Short, short long typically is a video problem.
    What hardware changes have you made to the PC?
    Unplug your PC and open it up.  Remove the video card and use a can of compressed to clean out teh dust from inside the card. Now put everything back together and give it a go.
    Remove as many USB devices as possible and then monitor the situation.
    It's possible that you have a flaky video card or power supply.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Z87 Mpower (post-code A0 or AD or AO??)

    Good day!
    Tell me, please, which means a combination of A0 (or AO or AD?) mainboard post-code screen?
    OS (Win 7 64 ult) booting correctly.
    It's okay, or worry? Google did not help to find a definitive answer. 
    Thank you! 

    Many thanks for the quick reply! 
    I duplicated my question to MSI support team.
    Quote their response:
    "Regarding your concern, the post code means the MB is detecting the devices installed, please don't worry about it. Thanks!
    Thanks for your cooperation in advance!
    Best Regards,
    MSI Technical Support Team"

  • BT Infinity date for my post code

    Hi,
    My post code is CH66 5PN, it looks like the exchange has been updated but Infinity is not available for my post code. Please can someone check the PCP? and let me know if it is planed for soon.
    Thanks,
    Bill

    Use this:
    http://www.coolwebhome.co.uk/fibre/checker.php 
    Postcode Exchange Service Type Probability Speed Increase Phase Cabinet
    CH665PN
    HOOTON
    FTTC
    75%
    2.9
    8a
    P18
    CH665PN
    HOOTON
    FTTC, but not available yet
    25%
    P23

  • HT2731 I live in Ireland and my account is asking for a post code

    I cannot set up my bank details on I tunes as it requires a post code that I do not have what do I put in its place

    I suggest you give Apple a call and see what they can do for you.
    I was going to suggest to register your iTunes to the country that is listed in iTunes and close to you but that might give you issues.
    Give Apple a call or email them and see what they say.

  • Customer master Post code  and city field Issue

    Hi,
    I am facing a problem with the customer master, In the address tab  postal code N0N 1J2 is giving a default value in the city description tab, However the defaulted value is not the correct one.
    Eg. if post code 123 has to display  DELHI it displays BOMBAY.
    Can you suggest where can i change the defaulted value.  Is there a table entry missing that should allow this city / zip code combination? Where are these settings maintained.
    Rgds

    Hi Prabu,
    Check this link it would be helpful to your solution
    http://forums.sdn.sap.com/thread.jspa?threadID=1962002
    Let me know if your problem is solved
    Regards
    Pradeep

Maybe you are looking for