Update breaks when ID has more than one digit
Hinkie opened this issue · comments
Hinkie commented
If ID = 13 the update function will send 1 to the query.
If ID = 25 the function sends 2.
And so on
Thank you
EDIT
The issue is when ID is send as an array
$db->update(cliente, [ 'nome_cliente' => $nome_cliente, 'tel1' => $tel1, 'tel2' => $tel2, 'endereco' => $endereco ],$id);
Works fine
But
$db->update(cliente, [ 'nome_cliente' => $nome_cliente, 'tel1' => $tel1, 'tel2' => $tel2, 'endereco' => $endereco ],[$id]);
Doesn't