Forum Discussion

MartinWard's avatar
MartinWard
Icon for Bronze II rankBronze II
31 days 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
    16 days 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. 🙂