Menu
Hello! I’ve got a nicely written up MySQL class and a bit of code that gets information from the DB (query with a WHERE id=$id). How can I get the $id from the url? I know I can achieve this with a $_GET[“id”] but I want it to be secure against SQL injection. How can I achieve this? Is there any way of doing this in OOP style? Looking forward to replies!
Thanks,
Sam Granger