Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Tim Mannah #1
Using INSERT with Multiple Tables
After seeing different tutorials I have reached the conclution to hand code
the insert page on my site since it has to update mutliple tables something
that is hard to do with a server behaviour.
I have a main table with data in it called tbMembers containing heaps of
personal data.
I have a second table called tbMembersExtra containing other member relevant
data.
tbMembers has a primary key called SysMemId
tbMembersExtra has a primary Key called MemExtraID and foreign key called
SysMemId.
The data i want to insert is stored in session variables and NOT a form.
Some data belongs in one table the rest in the other.
Do i really have to have separate SQL insert statements to cater for this or
can it be done using one SQL insert statement. I obviously want to store the
relevant data without losing the relationship.
Can someone put me on the right track for doing INSERTS as mentioned above
into different tables?
Thanks.
Tim Mannah Guest
-
insert form data into joined tables...
Hello All, I am trying to insert form data in to two joined tables. If Table 1 has a "ProductID" unique key and Table 2 has a numeric "ProductID"... -
Multiple Insert or Looping Insert
I built an application on an Access DB that allows a dispatcher to log trucks in the field at their location as they call in. There are three... -
Insert into two tables from a single submit
Folks: Is there a good refresher out there on this kind of shenanigan? (ASP, please) -- Murray --- ICQ 71997575 Team Macromedia Volunteer... -
update multiple records in multiple tables from one form
hello I have been trying to run multiple update queries based on the data entered by user. Brief background: I am fetching data from various... -
insert data for two tables at same time?
1 to many relationship tables first table - project number (auto), project name, Proj manager, proj date, proj description second table - project... -
Paul Whitham TMM #2
Re: Using INSERT with Multiple Tables
You have to construct an insert statement for each table. The exact code
will depend upon the server language being used
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"Tim Mannah" <timm@diabetesnsw.com.au> wrote in message
news:d5rljp$i72$1@forums.macromedia.com...code> After seeing different tutorials I have reached the conclution to handsomething> the insert page on my site since it has to update mutliple tablesrelevant> that is hard to do with a server behaviour.
>
> I have a main table with data in it called tbMembers containing heaps of
> personal data.
> I have a second table called tbMembersExtra containing other memberor> data.
>
> tbMembers has a primary key called SysMemId
> tbMembersExtra has a primary Key called MemExtraID and foreign key called
> SysMemId.
>
> The data i want to insert is stored in session variables and NOT a form.
>
> Some data belongs in one table the rest in the other.
>
> Do i really have to have separate SQL insert statements to cater for thisthe> can it be done using one SQL insert statement. I obviously want to store> relevant data without losing the relationship.
>
> Can someone put me on the right track for doing INSERTS as mentioned above
> into different tables?
>
> Thanks.
>
>
>
Paul Whitham TMM Guest
-
Alexandru COSTIN #3
Re: Using INSERT with Multiple Tables
Hi,
We have included this functionality in MX Kollection 3 - that is in
beta right now. So - it's possible with server behaviors.
If you want to take part in the beta - just contact me at
[email]acostin@interaktonline.com[/email] and I will register you in about one week.
Alexandru
Tim Mannah wrote:--> After seeing different tutorials I have reached the conclution to hand code
> the insert page on my site since it has to update mutliple tables something
> that is hard to do with a server behaviour.
>
> I have a main table with data in it called tbMembers containing heaps of
> personal data.
> I have a second table called tbMembersExtra containing other member relevant
> data.
>
> tbMembers has a primary key called SysMemId
> tbMembersExtra has a primary Key called MemExtraID and foreign key called
> SysMemId.
>
> The data i want to insert is stored in session variables and NOT a form.
>
> Some data belongs in one table the rest in the other.
>
> Do i really have to have separate SQL insert statements to cater for this or
> can it be done using one SQL insert statement. I obviously want to store the
> relevant data without losing the relationship.
>
> Can someone put me on the right track for doing INSERTS as mentioned above
> into different tables?
>
> Thanks.
>
>
>
InterAKT Online - Dreamweaver extensions
[url]http://www.interaktonline.com/[/url]
Alexandru COSTIN Guest
-
Julian Roberts #4
Re: Using INSERT with Multiple Tables
I've an article on the subject that may be useful
[url]http://www.charon.co.uk/content.aspx?CategoryID=27&ArticleID=47[/url]
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Glitch808 #5
Re: Using INSERT with Multiple Tables
I recommend using the Insert Behavior, then passing all the form values in a
session variable to a second page.
Then on the second page populate hidden form fields with the session
variables. Use the same insert behavior for the 2nd table you want to insert
to.
Here?s the page to explain the set up to pass the session variable:
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16516[/url]
Here?s what you need to auto submit the form.
<body onLoad="document.forms[0].submit()">
Glitch808 Guest



Reply With Quote

