Forum Discussion

MartinWard's avatar
MartinWard
Bronze II
2 months ago
Solved

PHP – Beginner PHP: SQL Injection

hi I cannot work out how to pass the checks for using a prepared statement. I've looked at various guides and examples and the code I am submitting looks okay to me, but it will not pass the "W...
  • MadelineDadamio's avatar
    1 month ago

    Hi MartinWard​ Thanks for getting in touch! Your code is close, but the lab is expecting a different style of prepared statement. The check will only pass when named parameters are used instead of the positional placeholders shown in your screenshot.

    If you update it to follow the pattern in the briefing, it should pass. Feel free to send it over again if you want another pair of eyes. 🙂