diff --git a/README.md b/README.md index 3e136d8..4158f44 100644 --- a/README.md +++ b/README.md @@ -586,7 +586,7 @@ Flight::route('/users', function () { // Insert a new user Flight::db()->runQuery("INSERT INTO users (name, email) VALUES (?, ?)", ['Bob', 'bob@example.com']); - $insert_id = $Flight::db()->lastInsertId(); + $insert_id = Flight::db()->lastInsertId(); // Update a user Flight::db()->runQuery("UPDATE users SET name = ? WHERE id = ?", ['Bob', 123]);