Ok
I know many of you already done with this sort of situation
i have a form which have few fields and on submitting that form i want these field values save into two tables.
Both the tables contains a primary key and foriegn key.
Let table one have id as PK and table 2 has id as FK in that table so in this way these two tables are related to each other.
I am not getting how will i code to insert data in both tables in single funtion and using the PK and Fk constriant.
ruchi18
0
Light Poster
Recommended Answers
Jump to PostLet table one have id as PK and table 2 has id as FK in that table so in this way these two tables are related to each other.
I am not getting how will i code to insert data in both tables in single funtion and using the …
Jump to PostWhat database are you using?
MYSQL/MSSQL/Oracle or something else?
What are you trying to INSERT here (it's more like an admin table)? :
//Table 1 has 3 fields id, name and password where id is primary key
What column data do you want to INSERT here?:
…
All 6 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.