It's late in the day and I can't figure this one out, I know it's going to be pretty easy!
I have a form which sends the following array;
array:2 [▼ "names" => array:3 [▼ 0 => "Default" 1 => "100ml" 2 => "150ml;" ] "prices" => array:3 [▼ 0 => "12.99" 1 => "9.99" 2 => "14.99" ]
I want to loop the array and do an insert using this array like so, the index from "names" and "prices";
INSERT INTO DB VALUES('Default',12.99);
INSERT INTO DB VALUES('100ml',9.99);
INSERT INTO DB VALUES('150ml',14.99);
Thanks