Merge pull request #523 from flightphp/krmu-patch-1

Update README.md
pull/524/head
n0nag0n 1 year ago committed by GitHub
commit 686d9e22fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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