Skip to content

Update breaks when ID has more than one digit #7

@Hinkie

Description

@Hinkie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions