PHP login system tutorial, using MySQL database and sessions, which includes registration, login, log out, and reset password functionality.
Download source code:
https://clevertechie.com/files/login-system.zip
Text version of this video:
https://clevertechie.com/php/20/login-system-php-mysql-database
The registered users will be stored in a MySQL database and sessions will be implemented to know when the user has been logged in and logged out. The reset password functionality process is also included, in case a user forgets their password.
After watching this video you will learn and understand how the complete login system works using PHP and MySQL and will be able to modify the code so you can integrate it into your own web site.
Please subscribe to clevertechie.com newsletter for new video and tutorial updates and you’ll get a free PHP programming book:
https://clevertechie.com
*********************************************
( New Video! ) How to Create Transparent Drop Down Navigation Menu with CSS and HTML
https://youtu.be/8x1mO1d6-4w
*********************************************
“““““““““““““““““““““““““““““““““““““““““““““““
( Website ) https://clevertechie.com – PHP, JavaScript, WordPress, CSS, and HTML tutorials in video and text format with cool looking graphics and diagrams.
( YouTube Channel ) https://www.youtube.com/c/CleverTechieTube
( Google Plus ) https://goo.gl/J71p6f – clever techie video tutorials.
( Facebook ) https://www.facebook.com/CleverTechie/
( Twitter ) https://twitter.com/theclevertechie
“““““““““““““““““““““““““““““““““““““““““““““““
Fatal error: Call to undefined method mysqli::error() in /Users/coltenlange/Sites/www/site/register.php on line 19
Hello Sir! I want to create an account for one person by using php. Could you do and post it? Thanks a lot!
Its awesome tutorial
Where can I download the source code for the system
give me that shit! Ha! ha!
Hello Clever, i’m having a problem where when i put the source code in “login-system’ in www folder (WAMP), it only errors. Any solutions?
Tried to get the ebook and never get a confirmation email? Tried 3 times.
What did you draft the login-system-chart.png? Image software or some kinda drafting software it looks great and easy to read.
Great tutorial! Can you tell me what program you used to create the chart?
Nice tutorial. Just a couple things to consider: email and email hash should have UNIQUE indexes. This will prevent duplicates from being inserted into the database. The PHP code does perform a check on the email, but not the email hash. md5(rand(0, 1000) gives a total of 1001 possible email hashes that can be inserted into the database. As more people register, the odds of a duplicate being inserted increase.
mysql is not a command. does this work on mac computers?!?!>!?!?!?!?1
To all the people who are asking about not getting account verification email. You need to modify php.ini and set your email and email host settings. Here are my settings:
SMTP = smtp.west.cox.net
smtp_port = 25
sendmail_from = vladi@clevertechie.com
You need to find out what your SMTP is and configure accordingly.
php.ini is not available in my cpanel what to do
Which editor you are using in this video at time = 7:49
Please reply fast.
bro very nice video and complete php form perfect video in whole youtube the only thing is missing is profile pictures fuctions in profile.php. can you please make that one video with upload profile picture on your profile i think you understand what i mean
does anyone configure php.ini file in ubuntu? I tried configuring the php.ini and Sendmail.ini, but couldn’t get the result as expected.
How did you create the chart with the list of all files? Did you use a mind mapping tool?
Hi Clever Techie, I got your files. Thank you for this video. When I click on the E-mail field or any field, I see “This connection is not secure. Logins enter here can be compromised. I see the Grey Padlock, with a RED line across. I don’t see the “Green Padlock” for secure web-sites. Could you please help me to understand why I don’t have the green padlock, and how I can have a secure log in. Thank you.
it very good teacher
the signup – function is not working … i get
“index.php:1 POST localhost/login-system/index.php 500 (Internal Server Error)”
once i “register”.
My System is a Raspi with Raspbian and LAMP server
usually computer code gets iutdated.. this one is fresh and working good though the logout page still works even though you still not logged in
Great video dude, really helped me out. But when I download the sourcecode and run it on opera, it turns out as just code and not as the login system. Could you please help me?
Thanks for the video, but i still can’t receive the verificationmail in inbox
The name is too cool bro.
How to see my sent emails?I use usbwebserver 8.0
Hey Clever Techie ,
Can You please teach me how to create a login form for multiple users like admin,staff,HOD etc… . without any registration. Can you please post a tutorial. My humble request.
Does anyone have any links to configure a working email client for WAMP?
hi , the mail verification still not working any help please ??
How to change this text:
“please fill out this field …” ?
thanks for the video,, i am facing this error;
Warning: Cannot modify header information – headers already sent by (output started at C:wampwwwlogin-systemindex.php:10) in C:wampwwwlogin-systemlogin.php on line 29
Logging in just reloads the page (same result with both right and wrong passwords), I have to manually go to the profile.php page to see I’m actually logged in, does anybody know why?
am not seeing the source code techie
PLEASE HELP!! i am getting this error after i try to register on my login.php …..” Fatal error: Uncaught Error: Call to a member function escape_string() on null in E:xampphtdocsHTD1login.php:5 Stack trace: #0 {main} thrown in E:xampphtdocsHTD1login.php on line 5″…any help please i havent changed anything on the code
Just wanting “”
Uo?3 7
could u please tell me how to output the mysql query results to a text file?
if anyone knows abt it, please comment down here…
thank you…
hi,
could u please make a video on admin panel… it would be much helpful to students like us…
I type my name, last name , e-mail and password, and I got this – Fatal error: Call to undefined function password_hash() in line 15. Line 15 is this: $password = $mysqli->escape_string(password_hash($_POST[‘password’], PASSWORD_BCRYPT));
What can it be? Please would you help me.
hello .. I am thankfull of your video because of it help me on my first php project login system but I encounter an error on index.php..
require ‘db.php’ & on mysqli…
what shoud I do?
( ! ) Warning: mysqli::mysqli(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES) in C:wamp64wwwlogin-system_newdb.php on line 7
Call Stack
#
Time
Memory
Function
Location
1
0.0015
239144
{main}( )
…index.php:0
2
0.0030
242352
require( ‘C:wamp64wwwlogin-system_newdb.php’ )
…index.php:3
3
0.0030
244288
mysqli ( )
…db.php:7