Student Reviews
( 5 Of 5 )
1 review
Video of How To Create A OOP PHP Login System For Beginners OOP PHP & PDO OOP PHP Tutorial in OOP course by Dani Krossing channel, video No. 19 free certified online
In this PHP tutorial you will learn how to create a login system in PHP from, and how to show content after being logged in. You will also learn about error handlers, and MySQLi databases, which includes how to make a login form and a signup form.
I am aware that this is a very long video, but I promise it will be one of the easiest guides you will ever find on how to create a OOP PHP login system from scratch!
If you get any errors during this tutorial, make sure to check out my solutions at the very bottom of this description! :)
LINKS
The next Profile Page tutorial: https://www.youtube.com/watch?vSfE_bXFQmCU&ab_channelDaniKrossing
Install XAMPP & a local server: https://www.youtube.com/watch?vmXdpCRgR-xE
Regular expressions (search patterns): https://www.youtube.com/watch?vIn5NBIRfMrQ
PDO vs. MySQLi links:
https://dev.to/mega6382/mysql-vs-mysqli-vs-pdo-performance-benchmark-difference-and-security-comparison-565o
https://www.hubspot24.com/rg-post?blog-idpdo-vs-mysqli-which-should-you-use
GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Memberships: https://www.youtube.com/channel/UCzyuZJ8zZ-Lhfnz41DG5qLw/join
Patreon: https://www.patreon.com/mmtuts
ERRORS YOU MIGHT RUN INTO!!!
"unexpected }"
If you get this error message:
Parse error: syntax error, unexpected '}'
Then it is because you forgot to close a ) or ; somewhere.
"unexpected ;"
If you get this error message:
Parse error: syntax error, unexpected ';'
Then it is because you forgot to close a } or ) somewhere. Probably because you made a mistake with your parenthesis near the "empty()" functions in your signup script.
"hashed pwd error"
If you get an error in the script when you hash the password, then it is because you decided not to follow my steps exactly in the video when I created the database table. Make sure you DON'T set the varchar() to a lower value! When you hash the password it will take up a lot of space in this column, and if you set a lower number then it won't fit!
"signupsuccess but database is empty?"
Here there might be a few reasons for your error. 1st is that you made a syntax/spelling mistake in your code. And yes you will claim that your code is identical to mine, but in 90% of the cases people claim this, I still find a syntax error in their code. So check your code for errors!
2nd reason is that MAMP seems to cause a lot of issues for people. Therefore try using XAMPP and make sure you write the same as me in the dbh.inc.php file.
3nd reason might be because you didn't follow the tutorial 100% when we set up the database at the beginning.
"HTTP ERROR 500"
HTTP ERROR 500 is a server error, meaning that you are most likely using an outdated version of apache or mysql. Try updating your servers and make sure that you are using the latest version of PHP.