Skip to content

Commit

Permalink
Merge pull request #523 from flightphp/krmu-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
n0nag0n authored Jan 16, 2024
2 parents 2098899 + 6deb386 commit 686d9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 686d9e2

Please sign in to comment.