Start your All-Access Pass to unlock this challenge
Challenge 1 / 1
What's the significance of using the fetch()
method instead of fetchAll()
with the following query (which will always match exactly 1 or 0 rows):
SELECT * FROM product WHERE id = 1
Skip challenges and go to theNext Chapter