Inserting data into two seperate tables with Dreamweaver

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

  1. #1

    Default Inserting data into two seperate tables with Dreamweaver

    I am trying to find out how you to insert the unique ID from one table into
    another table so that those two tables become connected. In other words the
    user is signing up to the site with one form, so the unique ID is being created
    in the members table, but after the user signs up to the site he/she also needs
    to be able to add their products to the site, and I need that unique ID from
    the members table to be inserted into the products table so that those two
    tables can be connected. But I'm not sure how to do this, I know that I can't
    use a form, or so I don't think, because the user won't know what their unique
    ID is, because the database is creating that. Any help with this would be
    great.

    Thanks,

    Jonathan

    lutzlut896 Guest

  2. Similar Questions and Discussions

    1. Inserting Tables
      Hi, this is the first time I've used dreamweaver and already I've run into a problem! I want to insert a table in my html document but a window pops...
    2. Inserting video in Dreamweaver
      I am using Camtasia to record small videos for a website. After I produce my first video in a Flash format. Camtasis produces 5 files. Html ?...
    3. Help needed in inserting / updating tables withDreamweaver
      Hello. Just registered. I am building an OnLine CD-Shop for a class in college and I have some problems. I'll get right to the point: I am using...
    4. Inserting records into related tables using a Stored Proc
      Hi, I have 2 Tables. Table1 and Table2. Table2 holds a foreign key to Table1. How do I insert my record into Table 1 and then insert 1 or...
    5. Inserting into one table data from 2 tables and some input data.
      Alrighty, I pull records from a database table onto a page based on vendor #. On this page I have an input box after each row of data that is just...
  3. #2

    Default Re: Inserting data into two seperate tables withDreamweaver

    Depending on the programming language you are using and the database, you can
    either return the value of the primary key of the members table to the query
    (in Coldfusion, it would come back to the returnvariable in the query). Or, you
    can do another query immediately to read the last record in the members table,
    presuming that's the one you just added. Then, the primary key to the members
    table can be set up as a foreign key in the products table.

    delaneypub 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