Argument passing and databases
Results 1 to 5 of 5

Thread: Argument passing and databases

  1. #1
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298

    Exclamation Argument passing and databases

    Hi

    2 problems:

    1. How can I pass arguments within a URL and how can I access the parameters passed within the webpage called.

    The 2 languages I can use is JavaScript or ASP.


    2. How can I store an image within a SQL Server database.


    Thanks
    CodeNameVirus

  2. #2
    Senior Member Aardpsymon's Avatar
    Join Date
    Feb 2007
    Location
    St Annes (aaaa!)
    Posts
    434
    thats easy.

    Code:
    http://www.somedomain.com/mysuperscript.asp?variable=value&variable2=value2&variable3=....
    as for #2.... not a part of SQL I have covered, sorry.

    I know google has the first answer, I suspect it has the second too.
    Last edited by Aardpsymon; May 2nd, 2007 at 12:05 PM.
    If the world doesn't stop annoying me I will name my kids ";DROP DATABASE;" and get revenge.

  3. #3
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    And how do i access those variables in my asp page?
    CodeNameVirus

  4. #4
    Member omin's Avatar
    Join Date
    Feb 2002
    Posts
    60
    You can use a url as Aardpsymon suggested.

    Using ASP you can retrieve those variables using

    Code:
    variable = request.querystring("variable")
    Instead of using the querystring you can use a form. To get the form values use

    Code:
    variable = request.form("variable")
    For more info try this link..
    http://www.w3schools.com/asp/asp_ref_request.asp

    As for saving images into a db - this link might help (even if you don't use ASP.NET it should still give you some good pointers.

    http://www.stardeveloper.com/article...1033101&page=1


    Good Luck!
    Last edited by omin; May 2nd, 2007 at 03:31 PM.
    \"Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth,
    nor does lightning travel in a straight line.\" -Benoit Mandelbrot

  5. #5
    Junior Member AarzaK's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    29
    Hello codenamevirus,

    In this FAQ you can understand how to save images in a database.


    http://www.vbcity.com/forums/faq.asp...abase#TID74665


    vbcity has much resources, I recommend you this website.


    Good luck.

    AarzaK
    I Was Sent...
    aarzak_@hotmail.com
    http://aarzak.fadlan.com
    http://www.iitac.org

    Alyssa: Aarzak! Save the world!
    Aarzak: I am the only one who can save this world!
    The Last Battle - Sega(c) Games 1989

Posting Permissions

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