I have the following array ()
Array
(
[camposdb] => Array
(
[51] => Array
(
[0] => cpf_cnpj
[1] => nome_razaosocial
[2] => cod_cliente
[3] => cod_contrato
[4] => mensagem
[5] => mensagem
[6] => mensagem
)
[60] => Array
(
[0] => celular
[1] => nome_razaosocial
[2] => nome_razaosocial
[3] => cod_contrato
[4] => mensagem
[5] => mensagem
[6] => telefone_r_1
)
)
)
In my form, I select the database records, and I put the inputs like this: camposdb[$row_fetch['id']][]
which brings me the above result.
What I need to do is the following ...
UPDATE tabela SET (cpf_cnpj, nome_razaosocial....) WHERE id = 51
.
The question is: How do I define that 51 and 60 are ids and are they dynamic?
$id = $campodb[0][???]