$recordQuery = "INSERT INTO store_order_item (order_id, product_id, name, track, order_quantity, product_cost, type) VALUES (\"$theId\",\"".$contents[$i]['code']."\",\"".$contents[$i]['name']."\",\"".$contents[$i]['track']."\", \"".$contents[$i]['quantity']."\", \"$thistotal\",\"".$contents[$i]['type']."\")";