Foreach issue with json on multiple inserts

I have a foreach then I have this code inside the foreach. I do aplogize about the incorrect wording.. If I change the [0] to [1] then [2] etc… it will insert the zero row then first row and 2 etc.. How would I do this inside a foreach loop already? – I am doing something silly and its driving me nuts – ["shipmentItems"]=> array(2) { [0]=> array and then the [0] changes to [1]

example

 $dbh->query("INSERT INTO `shipments_parts` (`orderNumber`,
`orderItemId`,...
PHP:

Foreach issue with json on multiple inserts
Digital Point

Leave a Reply

Your email address will not be published. Required fields are marked *