Multiple Category Search Page

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

  1. #1

    Default Multiple Category Search Page

    I'm trying to create a search page, with the option of selecting one of more
    categories.

    I understand how to code it, so the Click event runs through which are
    checked and which aren't.. etc... but wanted to use a SPROC rather than
    create a SQL Statement (the latter would be easier I know)

    I'm wondering how I can construct the SPROC, on the Database??

    I suppose, the one way would create a string to pass as the parameter to end
    up something like

    WHERE CategoryID = '1' OR '2' OR '3' etc...

    if my SPROC is along lines.. SELECT * FROM dbo.Table WHERE CategoryID =
    @CategoryID

    Anyone have any ideas??

    Calvin Willman Guest

  2. Similar Questions and Discussions

    1. Datagrid with multiple *header/category* rows
      Is it possible to create a datagrid with this structure: --beverages-- wine beer coke --snacks-- popcorn nuts
    2. ANN: InterAKT Site Search - search in multiple tables
      Hello, We have just released a new product, MX Site Search, meant to help web developers and designers create a search form in their dynamic...
    3. Page that displays SQL results by category?
      I have a SQL database that contains the fields "author," "title," and "category." I want to create a web page that sorts the entries by...
    4. [PHP] Category and sub-category logic
      Ryan A <mailto:ryan@jumac.com> on Thursday, August 14, 2003 3:21 PM said: Read this http://www.sitepoint.com/article/1105 and you will know what...
    5. Category and sub-category logic
      Hi, I am thinking of making a program for personal use which does a very simple thing, just displays listings under categories, eg: under main...
  3. #2

    Default Re: Multiple Category Search Page

    Parp...

    i use the in keyword.

    so select * from products where categoryid in @categoryid and pass (1,2)


    On 20/4/05 5:40 pm, in article BE8C4493.B22%calvinwillman@orange.net,
    "Calvin Willman" <calvinwillman@orange.net> wrote:
    > I'm trying to create a search page, with the option of selecting one of more
    > categories.
    >
    > I understand how to code it, so the Click event runs through which are
    > checked and which aren't.. etc... but wanted to use a SPROC rather than
    > create a SQL Statement (the latter would be easier I know)
    >
    > I'm wondering how I can construct the SPROC, on the Database??
    >
    > I suppose, the one way would create a string to pass as the parameter to end
    > up something like
    >
    > WHERE CategoryID = '1' OR '2' OR '3' etc...
    >
    > if my SPROC is along lines.. SELECT * FROM dbo.Table WHERE CategoryID =
    > @CategoryID
    >
    > Anyone have any ideas??
    >
    Calvin Willman 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