I have been searching the internet for the last week for a tutorial that goes over how to make a registration and login system using PDO and Blowfish crypt methods. I have got to the point where I can crypt my passwords and store them in the database along with the username but the parts that I have been stuck at are preparing the database and pulling out he username and password and then comparing the password and allowing a person to log in. I have tried all that I could find like sqli real escape strings and bindparam and a few more. I can not get my prepare statements to return anything which makes me think that they are unable to pull from the database. If I could figure out how to pull from the database I would just need to find tutorials on comparing the password with the encrypted password. My main question, because I don't want to make anyone waste their time creating a tutorial, is where can I find a good tutorial that explains the steps. I want to understand what is happening not just do something but all the tutorials I find don't explain why they do things rather they just do it. I even tried to copy one exactly and it still did not work. I am still learning php and this is one of the things I've always wanted to learn, and I don't want to do it the lazy way but rather make sure the login page I make is secure. I tried using the PHP pdo Manuel pages as much as I could but I didn't get anywhere. Thanks for any help.