Menu
im doing a short tutorial on php pdo and the content isnt that detailed so i have some questions.
1. with the query and fetch functions. couldnt a user do sql injection? when youre inserting data theres the prepared statements which remove swl injection, what safeguards are there against that when querying?2. what is the advantage of using fetch in a while loop over just using a foreach loop with the query function?