> For the complete documentation index, see [llms.txt](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/database/update-existing-row.md).

# Update Existing Row

Table = table name\
1st Array Row = Row and id = id

2nd Array = New Data in Array

```php
$db->edit(
    "table", 
    array(
        "row" => "id",
        "id" => "1"
    ), 
    [
        "col1" => "col2",
        "col2" => "col3"
    ]
);
```

```php
Array(
'STATE' => TRUE,
'MESSAGE' => "Successfully edited",
)
```
