How do I display an invalid zip code in a summary table

On my airshow website we have a feedback form, one of the questions is the zipcode where the visitor came from. This works fine. The summary results tab includes a lookup for the zipcode where I show the city associated with the zipcode and then how many responses came from that zipcode. This can be seen here http://www.hollisterairshow.com/feedback-results.php?tab=7
In testing, I found that an invalid zipcode is not displayed in the summary table, although it is counted in the total number of responses. I'd like to display the invalid zipcode and leave the City blank, or maybe put "Invalid zip code". The current code is displayed below, it's beyond my ability to figure out how I should change it to display invalid zipcodes and I'd really appreciate some direction on this.
I know I could validate the zipcode on entry but it's quite possible the zipcode table I have is out of date and i can't find a free downloadable list, so I'm thinking anything invalid could cause me to update my table.which is fine.
Thanks for any assistance.
Tony
<div class="TabbedPanelsContent">
<?php
// Make a MySQL Connection
$query = "SELECT feedback.zip, COUNT(feedback.zip), zipcodes.citystate FROM feedback, zipcodes WHERE feedback.zip = zipcodes.zipcode GROUP BY feedback.zip";
$result = mysql_query($query) or die(mysql_error());
// Print out result
while($row = mysql_fetch_array($result))
echo $row['zip']. " ". $row['COUNT(feedback.zip)']. " ". $row['citystate'];
echo "<br />";
?>
</div>

Use an outer join on the two tables so that results are returned for all feedback rows, instead of just matching rows. The column zipcodes.citystate will be NULL. In your recordset output, you can test for null in the column and populate it with "Invalid Zipcode" if you want.
You'll need to move the join to the FROM clause as I believe that MySQL does not support outer joins in the WHERE clause like most other DBMS's.

Similar Messages

  • Invalid zip code

    first it started with an invalid security code i plugged in my info again and then it changed to invalid zip code

    Welcome to the Apple Community.
    Credit card security code or postcode issues.

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • How to set columns for Zip Codes?

    I am new to iMac and in my first week using trial version of Numbers. I work in sales and we do lots of mailings using merging of data and addresses for post cards, labels, etc.
    I cannot see how to set columns to a zip code setting. All zips entered beginning with a 0 drop the front 0. I tried calling the column as Text, but it did not help. I can type a ' in from of the 0 and it works, but this takes an insane amount of time and will not work for us.
    How do you deal with Zip Codes? Are there labeling options for mailing built into Numbers? I really want to dump all MS products but will have to drop mac and return buy Office if this is not correctable.
    Thank you,
    Brownie

    Hello
    Setting the column format to text do the trick on my french version too.
    With AppleWorks, I was accustomed to use a zeroSlashed so it remained in my zip codes when I moved codes here and there.
    Yvan KOENIG (from FRANCE jeudi 13 septembre 2007 17:44:38)

  • Values not showing up for 3 digit zip code maps of states

    I've been tinkering with an app that displays the US, with a query that shows how many folks we have in each state. The link takes you to a page that displays the state/zip code style map. On the map of the US, I can see the label and the value from the query for all states. But in the state map, all that shows up are the labels. I have the map set to show values, but they won't display.
    I'm using APEX 4.0.1 in a 10.2.0.4 database running on Windows.
    Any thoughts?

    Hi mjblake,
    The Map Region columns (i.e. REGION_NAME, REGION_ID, etc) can vary for each Map source .amap file. So it's definitely worth referencing the AnyChart Map Reference Information when you're adding your map series query, to ensure that your query is referencing data that's actually contained in your chosen .amap file.
    By default, the wizard will set the "Map Region Column" to REGION_NAME, as this the default AnyChart column. However, some maps, like the US State Zipcode maps, don't actually have a REGION_NAME column in their data, which is why you would need to update the "Map Region Column" on the Map Attributes page to your chosen column e.g. REGION_ID. In the case of the US State Zipcode maps, the available columns are REGION_ID, CENTROID_X and CENTROID_Y, as shown in this example: http://anychart.com/products/anychart/docs/users-guide/map_reference/United-States-of-America-3-digit-ZIP-Code-Maps-for-All-50-States-Alabama-Flash-Map.html?fromtree. You may not be aware of this, but when stepping through the Create Map wizard, on the 'Query' page, there's a Show/Hide region called "Map Region Information", which displays the AnyChart information associated with your selected map.
    Regards,
    Hilary

  • Zip code error resurfacing?

    I saw earlier this year that users were having a problem purchasing items on the iTunes MS, where an error would display that the zip code on file did not match that on file with their credit card company. I just received this error this morning (no moves, confirmed with credit card company that no one messed with my account) -- is this resurfacing on a wider scale as it did in Jan/Feb, anyone else having this problem?
    Couldn't find a record of a solution in those older posts, and some people had the zip code issue for months, which I'm hoping is not the case here.
    I had the error this morning on 10.4.7 and iTunes 7.0, upgraded to 10.4.8 and iTunes 7.0.1 and the error is still there.
    20" iMac Dual Core, 12 iBook G4 1Ghz   Mac OS X (10.4.7)   10.4.8 actually

    Oh well, as quickly as it appears, it goes away. Next time I won't wake up so early. Everything looks back to normal.
    20" iMac Dual Core, 12 iBook G4 1Ghz   Mac OS X (10.4.7)   10.4.8 actually

  • Changes of the ZIP Code for the sales organization

    Hi All,
    I have done the changes of the ZIP Code for the sales organization by using the t code ovx5  the change of zip code in adress but when i rechek the changes in the order acknowledgement output there i can see the old zip code only.
    Please help me how to make the change the zip code to SO, so that i can view that in output.
    need to update pls help..
    Thanks for help
    Raj.

    Hiii
    Check weather your developer hardcode the sales organization pin code: else check the logic weathe Sales org Pin Code is getting from following logic. Go to table TVKO and put ur sales org number in VKORG field  then execute
    Get the ADRNR number and pass the same in ADRC table and get the POST_CODE1 as pin code number (give same logic to your abaper)
    Regards
    Shambhu Sarkar

  • How do i display input values (POV) for a table control field

    Hi guyz !
    How do i display input values (POV) for a field in table control,
    i mean when user presses F4 on a table control field.
    Please help.
    Thanks
    jahan

    PROCESS ON VALUE-REQUEST( F4 ) statement  
    Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name.
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    reward points  if it is usefull ..
    Girish

  • Zip code entry truncation

    On several on-line browsers (information entry) when I go to enter a 5 digit zip code, the next field truncates the xip code to 4 digits. How can I enter the proper zip code ?

    Welcome To Discussions dlotz!
    You have posted your inquiry, in the Discussions Forum, that is intended for discourse about the use of Apple Discussions.
    You will get more focused attention to your issue, if you select a more appropriate location from this page Discussions Forum Home.
    For example,
    From the Forum Home Page above, select the Category Mac OS X v10.3 & earlier.
    Then choose a Forum, like Using Mac OS X.
    Or, Getting Online.
    On Forum pages, there is an option to Post New Topic.
    But, is it possible that the 5th digit is really there, but is hidden from view by the text field space limitation?
    To test that theory, can you copy what is there, and then view it in your Clipboard?
    After you post your New Topic, I'll watch for it!
    Good Luck!
    ali b

  • Invalid account code in landed cost

    when i on click on add button msg displayed is "invalid account code" but  all the account are mapped correctly in landed cost master and in G/L account determination,  what could be the reason for this msg, plzz shed some light on this i am really stuck on this for last 2 days but couldn't reach to any solution.
    any sort of help would be appreciated.
    Thank you
    varun

    hi,
    check Landed Cost - Invalid Account Code
    Error while entering Landed Cost
    Thanks,
    Neetu

  • Segmentation on basis of Zip code

    Hi,
    i am trying to create segmentation using Zip code. iam creating a Z infoset by joining tables using base table BUT000 and field Post_code1 from table ADRC . infoset is created sucessfully but when i create profile & target group .it shows no bp with any filter.
    Is this the only way to create segmentation on basis of Zip code.
    any inputs will be help full.
    Regards
    Rajiv sharma

    Hi Rajiv,
    The ZIP code ( technical field:- POST_CODE1, Table:- ADDR2_DATA ) is basically a field of data type CHAR of size 10.
    So in segmentation when you try to create a filter with Equal to say zip code 12345 it basically tries to compare the integer value 12345 with a character 12345 and thus this does not give exact result.
    Did u try creating filer with "Contains Pattern". and see if it works.
    rgrds,
    Randhir

  • To display Total sum of a column in a table view control ?

    Hi,
      I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
    Thanks in advance.
    Vara.

    Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
    /people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    An Iterator is the way to go for you

  • Apple ID billing information continually adds additional digits to my zip code. This causes my credit card to be invalid, how do I fix this?

    As the title says, when I try to update my billing information the software adds additional digits to my zip code. This is all fine and dandy, it matches to where I live. But my bank only uses the standard five digits and when it adds the additional digits they will not match up correctly despite the first five being matched. This causes an endless and stupidly frustrating cycle that I cannot solve. I tried to find a phone number to call and sort this out but of course that doesn't exist. Any help would be great.

    Hi ...
    Might be something here >  iTunes Store: My credit card's security code or zip code does not match my bank's records
    And you can explain the situation to Apple here > Apple - Support - Mac App Store - Contact Support
    BTW, billing policy is the same for the iTunes and the Mac App Stores.

  • My ipod wont let me buy any apps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    my ipod wont let me buy any appps because it says i have an invalid security code for my moms credit card but its the right one. and it also says i owe money for upgrading an app does anyone know how to remove my moms credit card cause i cant figure itout

    To change asccount information see:
    Changing Account Information
    For the code issue this may help.
    iTunes Store: My credit card's security code or zip code does not match my bank's records
    For a standard iTunes account you need a valid payment method even for free apps and app updates.
    What is making it think that you own money for an app upgrade?

  • How to have ICWeb Identification screen on top left show premise zip code

    Previously in one of our training environments anytime a Business Partner and Premise were confirmed the top left hand screen in the ICWeb would show the BP first and last name as well as the premise and the premise zip code.  In our production environment the top left hand screen shows everything except for the premise zip code.
    Can somebody please explain how this field can pick up on the premise zip code whether it is done through SPRO or coding?
    Thanks
    Dave

    Hi David,
    This is proper coding issue. As you want  premise zip code to display in the contact information box. If I am not wrong. You can do it in Component CRMCMP_IC_FRAME. In the custom controller there is method SET_CALLER_DISPLAY_BPNAME where you need to get the premise zip code data and concatenate it to caller_display_name variable.
    Hope this will solve your issue.
    Thanks,
    Albert

Maybe you are looking for

  • ABAP Objects: Urgent issue

    Hi, I have a BADI ZSGL_SDP_SELECT_PROD which has a implementing class ZCL_IM_SGL_SDP_SELECTOR1. Within this I have a method: LOC_PROD_VALUE_LIST data: lv_value_list_ref TYPE REF TO data, " Line of CT_VALUE_LIST Here there is a changing parameter ct_v

  • How to find Out my modelltype

    How can i find out which iPad Modell i use

  • Imported clips pane shows old clips?

    When I create a new project in iMovie '11, a nice blank area shows up in the project pane of the interface. Then I choose File > Import > Movies and import a new clip. However, the lower right pane, where it shows my imported clips, continues to show

  • PDF Pages to Artboards error

    So, I searched the forums on opening a multi-page pdf with all the pages on art boards, found a link to download a script "PDF Pages to Artboards". Once i downloaded it on my desktop i placed it in my dock (Mac), then dragged the multi-page pdf file

  • The Comparing RAW with TS Time Lapse Recording file for MSI PANOCAM

    I am a big fan of MSI, I have been using its motherboard, MP3 and NB. MSI introduces a new IOT product in 2015, MSI PANOCAM, I feel excited about it, therefore I wanna share some experience of MSI PANOCAM here. Have you heard Time-Lapse, it is very p