Update README.md

Typo
pull/523/head
Kristaps Muižnieks 1 year ago committed by GitHub
parent bef92303d7
commit 6deb3863c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]);

Loading…
Cancel
Save