Results 1 to 11 of 11

Thread: Access Database content on a web page

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    Hi. I had no luck with this post on other forums so her eI am...

    I am planning on building a web page that shows an access database's content based on the user's choice (Example for a CD store, the user will choose the kind of music, price range etc)

    I am very familiar with Access and the way it deals with SQL. Are there any tutorials I should look for? Thank you
    Chris

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    Check out Active Server Pages or IIS applications. Either one will do the trick.
    Damonous

  3. #3

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    Active Server Pages? This is what they call ASP right? Then this must be very popular. Is this to be used with my web developer (frontpage, macromedia etc)?

    Or is it a web-page developer by itself? All I want to be able to do is perform custom queries. I don't need no online shop or anything like that.

    Do you know a place for good tutorials on this?

    Thank you
    Chris

  4. #4
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Here is some example Code

    'Add this to your .html page
    <form method= post action="your.asp">
    <input type="text" name="Pass" value size="20"></input>
    <input type=submit></input>

    ---------------------------------------

    'Create the "your.asp" you called in your html file
    <html> 'use normal html

    <% my_pass = request("Pass") %> 'Server side VBS

    <%
    SQL_String = "SELECT info.login ..."
    SQL_String = SQL_String & " where((info.pass) = my_pass);"

    set conn = server.createobject("adodb.connection")
    conn.open "dsn=loginform" 'Your Database

    set rs = conn.execute(SQL_String)

    while not rs.eof
    If LCase(rs("login")) <> "root" then
    response.write "<br><b>Login:</b> " & rs("login")
    Else
    rs.movenext 'goes to the next record
    Wend
    %>
    <p>All login names use Password: <% =my_pass %>
    </html>

    ------------------------------
    This is sample BS code that will query a database and print out all Login Names that have the Password you send to the .ASP except the Login of ROOT.

    This should help you on your way so you can get a feel of what your in for.

    Brandon

  5. #5
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Hi there,

    Here is a really great tutorial which helped me get started with ASP.

    http://msdn.microsoft.com/library/pa...erverpages.htm


    [Edited by Shafee on 11-14-2000 at 01:33 PM]

  6. #6

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    ...sounds good. But from that URL, there is no link and couldn't find on MSDN where the tutorial actually starts.

    Can you help me out?
    Chris

  7. #7
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Don't forget to check and see if your host allows ASP on their server...a vast majority don't.

    Lots of stuff Here
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  8. #8
    Junior Member
    Join Date
    Nov 2000
    Posts
    20

    Reply to query

    Firstly, you can use Front page itself to link to a database. Refer to any book on front page for this.
    Front Page automatically creates a database connection for you guiding you through the wizard. You can set up the database connection using Insert->Database Results. Morever you can also specify sql statements.

    Secondly, ASP lets you set up database manipulation through code. You have to link to the database which is done by using the connection object of ASP. After the connection is established, a recordset is returned(i.e) a group of fields are returned based upon your search criteria. You can manipulate the recordset using the ASP code and syntax.

    I recomment you learn ASP cause it would really help you in database manipulation on the net.

    I would soon send you a perfect code for you use based on a real life time simulation.

    Enjoy Programming.

  9. #9

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    I hope, and I think, that my knowledge on databases (SQL, recordsets) will help me a lot in learning ASP.

    I'm simply new to everything that touches the web. Maybe some of you can answer my question: I am thinking on retrieving data from a database and show its content in an OCX component I usually employ in VB.

    What will happen if the user viewing the web page doesn't have the component (.ocx)?
    Chris

  10. #10
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    Try this link then.

    http://msdn.microsoft.com/library/de...erverpages.htm

    Use the TOC (Table Of Contents) at the left hand side of the screen.

    [Edited by shafee on 11-17-2000 at 07:28 AM]

  11. #11
    Addicted Member Skeen's Avatar
    Join Date
    Jul 2000
    Location
    Abingdon, Oxon
    Posts
    138

    Talking SQL in VBScript sat inside HTML

    It don't get much easier.

    I'm a crap programmer, but even I can use asp's

    Blummin' smashin they are - I'd reccomend 'em to anybody!

    Cheers 'n' beers
    Skeen
    "It wasn't the booze that made me snooze, It was the Gin that did me in!"

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