For an introduction to PDO I found these articles useful
For a more in depth look at PDO there is this:-
https://www.sitepoint.com/community/t/looking-for-feedback-on-a-pdo-tutorial-i-wrote/215875?u=sama74
I know this gets said a lot, over and over again here. But when you are new it’s very easy to fall in the trap of learning out-dated stuff without knowing it. The mysql API is dead, there is no use in spending time learning yesterday’s methods.