Posts by wellington • 1 point
3 posts
-
0
votes1
answer36
viewsA: "Undefined offset" Multidimensional Array Sum
The solution I found was to change the logic. I first put everything in an array for products and then I disappeared. $compras[$cProd][] = $qCom; Summing up: foreach ($compras as $key => $value)…
phpanswered wellington 1 -
-1
votes1
answer36
viewsQ: "Undefined offset" Multidimensional Array Sum
My system reads the XML files inside a folder and puts the data ("invoice number", "product code","quantity") inside an array. I created a new array to have the total per product, where the account…
phpasked wellington 1 -
-1
votes1
answer169
viewsQ: How to insert data and a table with Foreign Key in PHP/MYSQL
i have 2 tables Client and Address with relationship 1.1 In the address table has the FK. What would be the right way to do the Insert in these tables, relating client to address? I imagine…