How to automatically insert data to mysql database without submit button in php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • captainB
    New Member
    • Aug 2009
    • 23

    #16
    yea, it was a joke....but not a very good one I guess :)

    Comment

    • msmjsuarez
      New Member
      • Nov 2009
      • 17

      #17
      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

      • captainB
        New Member
        • Aug 2009
        • 23

        #18
        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

        Working...