Insert an array of object from an array of object into mysql database php

Questions › Insert an array of object from an array of object into mysql database php
Jehal Desai Staff asked 4 years ago

I'm new to JSON and I have this JSON data that I already JSON.stringify for me to pass into my back-end(php) using AJAX. At the PHP side, I want to store the following (bizName, bizAddress, salesman, term, duedate, and area) into a table named "orderDetail " and the data inside ordersArr into another table named "orders" and use the Primary Key ID from orderDetail table as a foreign key for each orders in the "orders".
I've researched many methods for me to use, what should I use in this scenario?
Thank you!


View on Stack Overflow