We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's just an example code does not affect the code for the website, but just saying...
What's showing in the book:
// Delete the book with the ISBN 978-3-16-148410-0 delete($pdo, 'book', '978-3-16-148410-0', 'isbn');
Believe the isbn# and 'isbn' should change place, like following:
// Delete the book with the ISBN 978-3-16-148410-0 delete($pdo, 'book', 'isbn', '978-3-16-148410-0');
This is the function code:
function delete($pdo, $table, $primaryKey, $id ) { $parameters = [':id' => $id]; query($pdo, 'DELETE FROM `' . $table . '` WHERE `' . $primaryKey . '` = :id', $parameters); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's just an example code does not affect the code for the website, but just saying...
What's showing in the book:
Believe the isbn# and 'isbn' should change place, like following:
This is the function code:
The text was updated successfully, but these errors were encountered: