php MySQL kaydetmek için gruplar halinde [isim] yoluyla Dizisi bölünmüş

0 Cevap php

output via print_r in php from jquery.serilizeArray()

Array ( 
     [pnr_item_2] => 2 
     [pkt_item_2] => Hosting L 
     [desc_item_2] => Domain + Hosting 
     [qty_item_2] => 9 
     [price_item_2] => 12.4 
     [pnr_item_1] => 1 
     [pkt_item_1] => HostingXXL 
     [desc_item_1] => 20GB, 1x.de 
     [qty_item_1] => 2 
     [price_item_1] => 15.5 
     [pnr_item_3] => 3 
     [pkt_item_3] => Domain 
     [desc_item_3] => Standarddomain 
     [qty_item_3] => 6 
     [price_item_3] => 5 
     [pnr_item_4] => 3 
     [pkt_item_4] => Domain 
     [desc_item_4] => Standarddomain 
     [qty_item_4] => 7 
     [price_item_4] => 5 
     [action] => save 
     [mysql] => update 
     [total] => 351.1 
)

Does exist a possibility to split an Array in groups by using the _item_##-number? I want to save items to my first MySQL table, action is the executet function, which I get via $_POST[action] and [total] have to be saved in a extra (2nd) MySQL-table.

0 Cevap