yea, it was a joke....but not a very good one I guess :)
How to automatically insert data to mysql database without submit button in php?
Collapse
X
-
Is it possible to insert data to two tables at one time using one form only?
Hello.
Is it possible to insert data to two tables at one time using one form only?
I'm using php and mysql.
Thanks advance.Comment
-
In your server-side code you can run two separate SQL INSERT statements when the form is posted, one for each table.
You can also execute a stored procedure and pass it your form values, and have it insert the values to two tables or more.
If you need more help, maybe you can post some more information, like -
what are the FORM values you are inserting?
What is the table structure of these 2 tables?
Good luck!Comment
Comment