Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Testing Online

    Hi,

    My site works fine offline but when uploaded i get the homepage but when i try
    to login i get this message : "ADODB.Recordset error '800a0bb9'

    Arguments are of the wrong type, are out of acceptable range, or are in
    conflict with one another.

    /index.asp, line 14"

    Here is the code :

    <%@LANGUAGE="JAVASCRIPT"%>
    <!--#include file="Connections/connectDB.asp" -->
    <%
    // *** Validate request to log in to this site.
    var MM_LoginAction = Request.ServerVariables("URL");
    if (Request.QueryString!="") MM_LoginAction += "?" +
    Server.HTMLEncode(Request.QueryString);
    var MM_valUsername=String(Request.Form("username"));
    if (MM_valUsername != "undefined") {
    var MM_fldUserAuthorization="";
    var MM_redirectLoginSuccess="welcome.asp";
    var MM_redirectLoginFailed="loginFail.asp";
    var MM_flag="ADODB.Recordset";
    var MM_rsUser = Server.CreateObject(MM_flag);
    MM_rsUser.ActiveConnection = MM_connectDB_STRING;
    MM_rsUser.Source = "SELECT username, password";
    if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," +
    MM_fldUserAuthorization;
    MM_rsUser.Source += " FROM logusers WHERE username='" +
    MM_valUsername.replace(/'/g, "''") + "' AND password='" +
    String(Request.Form("password")).replace(/'/g, "''") + "'";
    MM_rsUser.CursorType = 0;
    MM_rsUser.CursorLocation = 2;
    MM_rsUser.LockType = 3;
    MM_rsUser.Open();
    if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
    // username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername;
    if (MM_fldUserAuthorization != "") {
    Session("MM_UserAuthorization") =
    String(MM_rsUser.Fields.Item(MM_fldUserAuthorizati on).Value);
    } else {
    Session("MM_UserAuthorization") = "";
    }
    if (String(Request.QueryString("accessdenied")) != "undefined" && false) {
    MM_redirectLoginSuccess = Request.QueryString("accessdenied");
    }
    MM_rsUser.Close();
    Response.Redirect(MM_redirectLoginSuccess);
    }
    MM_rsUser.Close();
    Response.Redirect(MM_redirectLoginFailed);
    }
    %>

    any thing to try would be great.


    hellfreezes Guest

  2. Similar Questions and Discussions

    1. testing SSL
      Hi, I need to test our site before we publish our public website. The problem is our site uses SSL and I can not test SSL before I use our...
    2. just testing
      Regards, Andu Novac
    3. Testing.
      Just testing my News Reader. Haven't seen much movement in this group. ;-)
    4. Professional Photographers - Sell your Photos Online , Online Proofing, Watermarking, Image Protection, and more.
      On 6 Jul 2003 11:40:28 -0700, in <9d2caaf1.0307061040.a857786@posting.google.com>, bluearchtop@my-deja.com (Ted Smith) said: Too expensive....
    5. Testing and Thanks
      Hi All I have just completed a site and need to start testing. The site can be accesssed at www.immuquest.com. Please try to look past the note...
  3. #2

    Default Re: Testing Online

    This is the connectDB.asp

    <%
    // FileName="Connection_odbc_conn_dsn.htm"
    // Type="ADO"
    // DesigntimeType="ADO"
    // HTTP="false"
    // Catalog=""
    // Schema=""

    MM_connectDB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    Server.MapPath("/Database/cheats.mdb")

    %>


    hellfreezes Guest

  4. #3

    Default Re: Testing Online

    Have you sset up the DSN on the server?

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "hellfreezes" <webforumsuser@macromedia.com> wrote in message
    news:efdgft$bgh$1@forums.macromedia.com...
    > This is the connectDB.asp
    >
    > <%
    > // FileName="Connection_odbc_conn_dsn.htm"
    > // Type="ADO"
    > // DesigntimeType="ADO"
    > // HTTP="false"
    > // Catalog=""
    > // Schema=""
    >
    > MM_connectDB_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    > Server.MapPath("/Database/cheats.mdb")
    >
    > %>
    >
    >

    Murray *ACE* Guest

  5. #4

    Default Re: Testing Online

    I`m a noob and wouldn`t know how to do that. My host is not helpful at all.

    There is ODBC connections and it says to "Create new Data Source" then
    "Name:" and "Database path: Home directory for cheatit.co.uk\"

    My database is in "Database/" dir and its called cheats.mdb

    Does that create a connection to my database from my homepage?

    or create a new database?



    hellfreezes Guest

  6. #5

    Default Re: Testing Online

    Ask your host to set up a DSN for you. If they are no help, remind them
    that you pay for their service (I assume you do). Or consider moving to a
    host that will help you.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "hellfreezes" <webforumsuser@macromedia.com> wrote in message
    news:efds8t$pjq$1@forums.macromedia.com...
    > I`m a noob and wouldn`t know how to do that. My host is not helpful at
    > all.
    >
    > There is ODBC connections and it says to "Create new Data Source" then
    > "Name:" and "Database path: Home directory for cheatit.co.uk\"
    >
    > My database is in "Database/" dir and its called cheats.mdb
    >
    > Does that create a connection to my database from my homepage?
    >
    > or create a new database?
    >
    >
    >

    Murray *ACE* Guest

  7. #6

    Default Re: Testing Online

    I was just thinking the same thing.


    Can you recommend any good value hosting?

    as i`m on a tight budget

    thx for the reply
    hellfreezes Guest

  8. #7

    Default Re: Testing Online

    Sorry - I tend not to pay attention to the bargain hosts. But you can
    probably get plenty of good recommendations here....

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "hellfreezes" <webforumsuser@macromedia.com> wrote in message
    news:efdv94$6c$1@forums.macromedia.com...
    >I was just thinking the same thing.
    >
    >
    > Can you recommend any good value hosting?
    >
    > as i`m on a tight budget
    >
    > thx for the reply

    Murray *ACE* Guest

  9. #8

    Default Re: Testing Online

    Be cautious and careful when you look at bargain hosts. Dig further and do some
    thorough research for EACH hosts. Some have excellent tech support, some claims
    that they have tech support, but are very lousy service.

    I like Dreamhost, which is based in southern California and have been very
    happy with the service for almost three years. However, I'd leave at that as it
    is.

    Deaf Web Designer 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