0
There are arrays that come from a div "clone" of jquery that can be duplicated or even more lines, like this:
product[] value[] Qtd[] total[] product[] value[] Qtd[] total[]
I need to save these arrays in an Insert, like this:
INSERT 'table' (product, value, Qtd, total) VALUES (product[],value[],Qtd[],total[]) ;
INSERT 'table' (product, value, Qtd, total) VALUES (product[],value[],Qtd[],total[]) ;
//OBS: I know this doesn’t work in VALUES but that’s what I need...
An idea => How to insert all array values and avoid $query->run every foreach run?
– rray
@rray remembering that if there are many records, it may not be very advantageous that, compensating the run repeatedly (as long as native binds are used, the data traffic is much smaller and faster, as the data will not be sent with separators, and are already transmitted as native type)
– Bacco
I’m sorry, but I couldn’t find the answer I needed in the indicated links and I couldn’t understand what was explained.. I don’t know if you understand me, the div I have is a clone in jquery that if you duplicate the data Insert also receives and is duplicated, if it is 3 Divs containing the variables, it receives via post and makes the Insert 3 times with the received variables..
– Alh