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

  1. #1

    Default Still no answer :-(

    Please see post "Sorry to repost, but couldn't find the answer!" 08/04/2005

    I still can't get this to work. Thanks Jules, i changed it but still get the
    'too few parameters expected 1.

    Help!
    Andy






    Andy Guest

  2. Similar Questions and Discussions

    1. Does anyone have an answer??
      Please Help!! I've been Using Dreamweaver MX for awhile, but I'm still just doing the tip of the iceberg kinda stuff. I can't seem to figure out...
    2. ANSWER THIS TOO..
      How in the F can this be happening when there are 4 USERS LOGGED IN???????????????????? SQLException while attempting to connect:...
    3. Please answer <<<<<<<<<<<<<<<<<<
      Nobody answered my previous post from last night. I would really like to get this solved. Is is puzzling. I want to change the layout of...
    4. : Hi , here is your answer
      Question: Will your secrets on *how to get 1 MILLION free visitors* bring traffic to MY type of website? So many people have been asking us this...
    5. Best answer yet...
      -----BEGIN PGP SIGNED MESSAGE----- _ I was poking around and came across this in the REXX FAQ. Is REXX better than ? Short answer: Yes. No....
  3. #2

    Default Re: Still no answer :-(

    I can't see your post but the error you mentioned can sometimes be caused by
    an incorrect column name.
    i.e. You request a column called "Descirption" when it should have been
    "Description" - that can do it.
    Referencing a column that simply doesn't exist can have the same effect.

    Check and double check your database column names to make sure that what
    you're asking for exists, and thenmake sure you're asking for it right :)

    HTH
    Rob
    [url]http://robgt.com/[/url]


    RobGT Guest

  4. #3

    Default Re: Still no answer :-(

    Ok thanks Rob
    I'll double check and post back

    Thank you!

    Andy


    "RobGT" <rob@lighthouseuk.removeme.net> wrote in message
    news:d3g1nj$qa3$1@forums.macromedia.com...
    >I can't see your post but the error you mentioned can sometimes be caused
    >by an incorrect column name.
    > i.e. You request a column called "Descirption" when it should have been
    > "Description" - that can do it.
    > Referencing a column that simply doesn't exist can have the same effect.
    >
    > Check and double check your database column names to make sure that what
    > you're asking for exists, and thenmake sure you're asking for it right :)
    >
    > HTH
    > Rob
    > [url]http://robgt.com/[/url]
    >
    >
    >


    Andy Guest

  5. #4

    Default Re: Still no answer :-(

    Hi again Rob
    I've checked the table fields and they're all correct. I created the sql
    through access so there's little room for typos.

    Here is my original post and code below.

    What i'm trying to do is filter the recordset on the category and the user.
    The user is identified through the Request.Cookies("ckusername") from the
    log in page. I'm not sure if this is the correct way to do it.

    Thanks again Rob


    SELECT category.CategoryID, category.Category, category.Category_Image,
    category.Category_Text, products.ProductID, products.CategoryID,
    products.Product_Title, products.Product_Description,
    products.Product_Image, products.Product_Price, Prices.ID, Prices.UserID,
    Prices.ProductID, Prices.Price, retailers.UserID, retailers.Retailer_Name,
    retailers.Retailer_Logo, retailers.username, retailers.show_prices
    FROM retailers INNER JOIN ((category INNER JOIN products ON
    category.CategoryID = products.CategoryID) INNER JOIN Prices ON
    products.ProductID = Prices.ProductID) ON retailers.UserID = Prices.UserID
    WHERE category.categoryID = MMColParam1 AND retailer.Retailer_Name =
    MMColParam2

    MMColParam1 2 Request("CategoryID")
    MMColParam2 andy Request.Cookies("ckusername")

    When i test the RS i get the 'too few parameters. Expected 2




    "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    news:d3g2og$rpp$1@forums.macromedia.com...
    > Ok thanks Rob
    > I'll double check and post back
    >
    > Thank you!
    >
    > Andy
    >
    >
    > "RobGT" <rob@lighthouseuk.removeme.net> wrote in message
    > news:d3g1nj$qa3$1@forums.macromedia.com...
    >>I can't see your post but the error you mentioned can sometimes be caused
    >>by an incorrect column name.
    >> i.e. You request a column called "Descirption" when it should have been
    >> "Description" - that can do it.
    >> Referencing a column that simply doesn't exist can have the same effect.
    >>
    >> Check and double check your database column names to make sure that what
    >> you're asking for exists, and thenmake sure you're asking for it right :)
    >>
    >> HTH
    >> Rob
    >> [url]http://robgt.com/[/url]
    >>
    >>
    >>
    >
    >
    >
    >


    Andy Guest

  6. #5

    Default Re: Still no answer :-(

    The only thing I see straight away is I think you have a data type mismatch.

    WHERE category.categoryID = MMColParam1 AND retailer.Retailer_Name =
    MMColParam2

    MMColParam2 should be "quoted" as it will contain a text value not a number.

    See what you get then?

    As regards using the cookie - are you using the built in authentication
    server behaviours?
    If so, you might be better off (maybe) using one of the Session variables
    that it creates for you: Session("MM_Username")

    Cheers,
    Rob
    [url]http://robgt.com[/url]


    RobGT Guest

  7. #6

    Default Re: Still no answer :-(

    You still need to delimit parameters for text fields with a single quote.
    See

    [url]http://www.w3schools.com/sql/sql_where.asp[/url]

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  8. #7

    Default Re: Still no answer :-(

    Hi Rob
    Thank you so much for your help.

    I re-built the SQL statement and used the quote around the retailer_name and
    it works :-)
    Yes i am using the built in authentication server behaviours.

    Could you explain why it might be better to use the session variable instead
    of the cookie?

    Cheers again!

    Andy

    "RobGT" <rob@lighthouseuk.removeme.net> wrote in message
    news:d3g68n$3hp$1@forums.macromedia.com...
    > The only thing I see straight away is I think you have a data type
    > mismatch.
    >
    > WHERE category.categoryID = MMColParam1 AND retailer.Retailer_Name =
    > MMColParam2
    >
    > MMColParam2 should be "quoted" as it will contain a text value not a
    > number.
    >
    > See what you get then?
    >
    > As regards using the cookie - are you using the built in authentication
    > server behaviours?
    > If so, you might be better off (maybe) using one of the Session variables
    > that it creates for you: Session("MM_Username")
    >
    > Cheers,
    > Rob
    > [url]http://robgt.com[/url]
    >
    >
    >


    Andy Guest

  9. #8

    Default Re: Still no answer :-(

    Hi Andy,
    >Could you explain why it might be better to use the session variable
    >instead of the cookie?
    Well, I suppose it doesn't really matter to be honest. In fact, if it's
    working using the cookie, then that might be the better option thinking
    about it as you are less likely to get session timeout issues with it not
    being in a session.

    If I were you, I'd leave it as is :)

    Cheers,
    Rob
    [url]http://robgt.com/[/url]


    RobGT Guest

  10. #9

    Default Re: Still no answer :-(

    Hi Jules
    Yes, you're right. I did use the single quote around the text field. There
    must have been something else wrong with it though.
    I rebuilt it and it works fine now. Strange, but thats me :-)

    Thanks again Guys very much appreciated!

    Andy


    "Julian Roberts" <newsg@charon.co.uk> wrote in message
    news:d3g6mo$45c$1@forums.macromedia.com...
    > You still need to delimit parameters for text fields with a single quote.
    > See
    >
    > [url]http://www.w3schools.com/sql/sql_where.asp[/url]
    >
    > --
    > Jules
    > [url]http://www.charon.co.uk/charoncart[/url]
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >


    Andy Guest

  11. #10

    Default Re: Still no answer :-(

    Session (temporary) cookies are less likely to be blocked. Session timeout
    issues are extremely easy to eliminate. It's one web server setting or one
    line of code. Big deal.

    --
    -------------------------------------------------------------------
    You must SHOW YOURSELF to e-mail me. No cowards allowed!




    "RobGT" <rob@lighthouseuk.removeme.net> wrote in message
    news:d3ga48$97b$1@forums.macromedia.com...
    > Hi Andy,
    >
    > >Could you explain why it might be better to use the session variable
    > >instead of the cookie?
    >
    > Well, I suppose it doesn't really matter to be honest. In fact, if it's
    > working using the cookie, then that might be the better option thinking
    > about it as you are less likely to get session timeout issues with it not
    > being in a session.
    >
    > If I were you, I'd leave it as is :)
    >
    > Cheers,
    > Rob
    > [url]http://robgt.com/[/url]
    >
    >

    Lionstone Guest

  12. #11

    Default Re: Still no answer :-(

    >It's one web server setting or one line of code. Big deal.

    LOL
    Yeah, but leaving it as it is means no extra lines of code at all...

    :)
    Rob
    [url]http://robgt.com/[/url]


    RobGT 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