Jump to content
Larry Ullman's Book Forums

CH18 User Registration ( connnect.php )


Recommended Posts

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.

PDO.PNG

MYSQli.PNG

Link to comment
Share on other sites

 Share

×
×
  • Create New...