The answer is really D. Because $age can be: $age = "1 or admon = 1" and this is kind of sql injection that is not prevented. $name is single quoted inside sql query, so it prevents this sql injection.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ZhukovPeter
4 years, 10 months ago