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

  1. #1

    Default For Julian Please

    Hi Julian
    After spending most of yesterday trying out various tutorial on inserting
    into multiple tables, I came across your one. Within 5 mins it was working.
    Thank you.

    I wonder if you could advise on how to retrieve the UserID which is inserted
    into the first table and insert it into the second table. I have got it all
    working using a hidden field and static value for the USerID, but now I'm
    stuck again.

    Hope you can point me in the right direction.

    Thanks Again

    Andy



    Andy Guest

  2. Similar Questions and Discussions

    1. FAO Julian - charon Cart
      Hi Julian I've coppied all of my working site code (charoncart 2) to another site, but when i add a product to the cart, the product size and...
    2. Julian date conversion
      How can you convert a flash date object to julian date and a julian date to a valid flash date object? Anyone have any ideas how to approach this?...
  3. #2

    Default Re: For Julian Please

    What code have you got? I think the example does show how to get the new ID
    from one table and insert it into another.

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


    Julian Roberts Guest

  4. #3

    Default Re: For Julian Please

    Hi Jules
    I'm using the code below. Access 200 & classic ASP

    <%
    if Request("selected") <> "" then
    RSProducts.AddNew
    RSProducts("Product_Title")=Request("Product_Title ")
    RSProducts("Product_Description")=Request("Product _Description")
    RSProducts("Product_Image")=Request("Product_Image ")
    RSProducts.Update
    RSPrices.AddNew
    RSPrices("ProductID")=Request("ProductID")
    RSPrices("Price")=Request("Product_Price")
    RSPrices.Update
    Response.Redirect("charoninsert.asp")
    end if
    %>


    "Julian Roberts" <newsg@charon.co.uk> wrote in message
    news:d3nudb$9lq$1@forums.macromedia.com...
    > What code have you got? I think the example does show how to get the new
    > ID from one table and insert it into another.
    >
    > --
    > Jules
    > [url]http://www.charon.co.uk/charoncart[/url]
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >


    Andy Guest

  5. #4

    Default Re: For Julian Please

    Jules
    I tried this but it didn't work!

    <%
    if Request("selected") <> "" then
    RSProducts.AddNew
    RSProducts("Product_Title")=Request("Product_Title ")
    RSProducts("Product_Description")=Request("Product _Description")
    RSProducts("Product_Image")=Request("Product_Image ")
    RSProducts.Update
    Session("ProductID")=RSProducts("ProductID")
    RSPrices.AddNew
    RSPrices("ProductID")=Session("ProductID")
    RSPrices("Price")=Request("Product_Price")
    RSPrices.Update
    Response.Redirect("charoninsert.asp")
    end if
    %>



    "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    news:d3nuob$a5s$1@forums.macromedia.com...
    > Hi Jules
    > I'm using the code below. Access 200 & classic ASP
    >
    > <%
    > if Request("selected") <> "" then
    > RSProducts.AddNew
    > RSProducts("Product_Title")=Request("Product_Title ")
    > RSProducts("Product_Description")=Request("Product _Description")
    > RSProducts("Product_Image")=Request("Product_Image ")
    > RSProducts.Update
    > RSPrices.AddNew
    > RSPrices("ProductID")=Request("ProductID")
    > RSPrices("Price")=Request("Product_Price")
    > RSPrices.Update
    > Response.Redirect("charoninsert.asp")
    > end if
    > %>
    >
    >
    > "Julian Roberts" <newsg@charon.co.uk> wrote in message
    > news:d3nudb$9lq$1@forums.macromedia.com...
    >> What code have you got? I think the example does show how to get the new
    >> ID from one table and insert it into another.
    >>
    >> --
    >> Jules
    >> [url]http://www.charon.co.uk/charoncart[/url]
    >> Charon Cart 3
    >> Shopping Cart Extension for Dreamweaver MX/MX 2004
    >>
    >>
    >>
    >
    >
    >
    >


    Andy 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