I have a web Ajax web form that I’m trying to insert the data into three different MySQL database tables.
I have a database with three tables
Table 1: Orders
id - primary key
Name
Date
Invoice
ebay
Shipper
Table 2: Products
Product_id - primary key
Product
id- foreign Key
Table 3: SMA
sma_id - primary key
sma
id - foreign key
I have all these tables in a web form using a modal and using Ajax.
Need the insert code to be able to insert the data from the web form to the MySQL tables with the ID primary key passed to the foreign keys.
Would love if someone can help me with that code
Thanks