Skip to content
Advertisement

How can i insert these multiple row data into mysql database

This is my html ajax and js code, it’s dynamic input field form i want to insert multiple data into mysql database following these column “pro” “des” “qty” “price” “sub_total” . “qty” and “price” used auto sum value to “sub_total” input field

please see my full html code then Please write a php code for me . Last time i was failed many time to do it.

so please help me

JavaScript

my php code was:

JavaScript

Advertisement

Answer

You will get your post data in $_POST['data']['Invoice'] array so change your script like :

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement