SamuelL Posted September 22, 2018 Share Posted September 22, 2018 Hello Larry, My name is Samuel and I bought your book to learn more about security techniques. Anyway, I had a question about your connection.php file from CH18. Your MySQLi code works fine, but I wrote my own version using PDO. My question is whether your custom error handler would still work in this case... Because you used the trigger_error( ) function differently than I did. I attached snapshots of your code and my code. I hope you can give me some advice or point me to the right direction. Link to comment Share on other sites More sharing options...
Larry Posted September 23, 2018 Share Posted September 23, 2018 That looks like it would work! Use an invalid username or password so the connection fails to confirm. Link to comment Share on other sites More sharing options...
Recommended Posts