From 2a54c8fbda598c1d676a8b8361632b2fbf1ccdec Mon Sep 17 00:00:00 2001 From: Mohamed Aymen Date: Fri, 27 Dec 2024 11:41:25 +0100 Subject: [PATCH] Update README.md correct variable name in the update exemple --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f4a6955..735997b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ $update = $database->update(["pwd" => "your_new_password"]) ->table("users") ->where(new FaaPz\PDO\Clause\Conditional("id", "=", 1234)); -if (($result = $insert->execute()) !== false) { +if (($result = $update->execute()) !== false) { $affectedRows = $result->rowCount(); }