Menu Item problem with SQL query

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Menu Item problem with SQL query

    Hi,

    I have a search page which contains a form with 2 drop down menus (Application
    and Operating System), which are used to search for records. The SQL query
    returns records on a result page matching results that match Application AND
    Operating System selected by the user. The SQL query works fine when the user
    selects items from both the Application and Operating System menus.

    However, the problem is when you only select one of the menus e.g .if you only
    want to search using the Operating System menu>>> No results show up.

    Currently, in each of the menus the first item is just blank and I think the
    query is trying to search for records with blank values. Does anyone know a way
    around this? How do you get the query to ignore menus the user does not select?

    Your help is much appreciated. Thanks,

    Sarb.

    singh83 Guest

  2. Similar Questions and Discussions

    1. create new sub-menu item....how???
      Hi, I have a site created with Dreamweaver templates. I can create a new page from a template but i want to make the page a sub-menu page. For...
    2. How get root item in menu bar
      in all of my applications with a menu bar, the MenuEvent.CHANGE event fires every time you click on a menu item, be it a top level, a leaf level, or...
    3. Add new Item on Pop Up Menu
      Hi, It is possible to add new items in contextual menu. You will need to use the function AVAppRegisterForContextMenuAddition. You can report...
    4. Convert a query to a list, or find an item in a query
      Hi All, I am using CFPOP to retrieve mail from a server, then delete each message after I retrieve it. What I want to do is to check that I don;t...
  3. #2

    Default Re: Menu Item problem with SQL query

    Hi,

    If the first item in a menu is blank, make sure its value is "%". That way,
    it will search for ALL, if someone has selected from only one of the menus.

    I think. :-)

    Nath.

    "singh83" <webforumsuser@macromedia.com> wrote in message
    news:d3hvv7$mqv$1@forums.macromedia.com...
    > Hi,
    >
    > I have a search page which contains a form with 2 drop down menus
    > (Application
    > and Operating System), which are used to search for records. The SQL query
    > returns records on a result page matching results that match Application
    > AND
    > Operating System selected by the user. The SQL query works fine when the
    > user
    > selects items from both the Application and Operating System menus.
    >
    > However, the problem is when you only select one of the menus e.g .if you
    > only
    > want to search using the Operating System menu>>> No results show up.
    >
    > Currently, in each of the menus the first item is just blank and I think
    > the
    > query is trying to search for records with blank values. Does anyone know
    > a way
    > around this? How do you get the query to ignore menus the user does not
    > select?
    >
    > Your help is much appreciated. Thanks,
    >
    > Sarb.
    >

    Nathon Jones Guest

  4. #3

    Default Re: Menu Item problem with SQL query

    Cheers Nath,

    yes that's right the % is what is needed as the value.

    Sarb.
    singh83 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139