Results 1 to 12 of 12

Thread: [RESOLVED] <Resolved> what's wrong with this???

Hybrid View

  1. #1
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: what's wrong with this???

    Wait a moment, everything is an object there? Ugh!

    OK, after browsing the docs, I'm not one bit smarter. All code examples are in VBScript, which makes it somewhat tiresome.
    Have you tried calling toString() on the objects?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  2. #2

    Thread Starter
    Addicted Member Lemon Lime's Avatar
    Join Date
    Jul 2000
    Location
    Space, the final frontier, go along the yellow brick road,turn left then left again. In the service window, ask for the insane dude.
    Posts
    167

    Resolved Resolved: what's wrong with this???

    Code:
    <%@language =javascript%>
    <html>
    <%var tester = " ",oConn, oRs, filePath, r,i=1,b=false;
    tester = new String((Request.QueryString("t")));
    filePath = Server.MapPath("pics.mdb");
    oConn = Server.CreateObject("ADODB.Connection");
    r = Server.CreateObject("adodb.recordset");
    oConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath);
    oRs = oConn.Execute("SELECT * From TableList");
    while (!oRs.eof) {
    b=b||(tester.toLowerCase( )==oRs("name").value.toLowerCase( ));
    if (b) break;
    oRs.MoveNext();}
    oRs.close();
    if (b){
    Response.Write("<B>" +tester +" is valid!!</b>");
    }else{
    Response.Write(tester+ " is invalid!!");}%>
    THAT'S IT
    .value is the answer
    debugged it twice!!
    I've had enough with sainity!
    What's the use of it anyway?

Posting Permissions

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



Click Here to Expand Forum to Full Width