NOTE FOR EXPRESSION WEB 4 USERS: it may look like your header(Location:xxx.php); instruction isn't working, but it really might be!Β For whatever reason, the preview function can kill it sometimes. Before you spend 9 hours trying a bunch of different tutorials and doing it over and over (Jay's really has been the best so far because he explains it VERY well), open your browser manually and type in your folder from the localhost/htdocs/…Β I promise it will be like magic and you will stop hating your computer.
The user fred doesn't exist…. and the variable dbUsername = dbusername without the capitalisation.
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'fred'@'localhost' (using password: YES) in C:apachehtdocsloginconnection.php on line 2 Failed to connect: Access denied for user 'fred'@'localhost' (using password: YES) Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:apachehtdocsloginindex.php on line 11
Notice: Undefined variable: dbUsername in C:apachehtdocsloginindex.php on line 19 Incorrect Password
above my login on top of the "wrong password…" it says :"Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:xampphtdocs…….index.php on line 11. Also it won't let me login with the correct information, but maybe that's because of the error.. I tried echoing the database variables ($dbUsername, $dbPassword) but it doesn't echo/show anything at all.
Hi guys, I am incredibly busy at this time, so I'm really not able to provide much support. With that said, I will respond when I can, and I've now provided the link to download the completed code in the video description.
Hello Jay! This is a wonderful online tut, and my problem is that even I used the correct user name and password, it is still echoing the "Incorrect username or password." and I believe I have coded after you line by line….
Mine just keeps going to my index.php when I click on the submit button. It's not even in my code that it should do that. I changed that. It won't echo out my variables it just goes to my index.php no matter what.
39 responses to “Simple PHP MySQL Login Tutorial by Jay Watson”
Man i salute you.You explain the best i understand everything and i've progress so much watching you're videos.Tnx alot :).
Awesome tutorial! Thanks Jay! π
first one to reply is gya
Exactly what I was searching for.
Great tutorial π
Great tutorial!
Hey man Ive been looking for a tutorial thats in depth and easy to follow. Thanks for such a tutorial! Props to you bud
Thanks you Jay π
GET is not secure? The entire series 'Build a Dynamic Website 2014" is completely based almost on the get method. confused on this.
NOTE FOR EXPRESSION WEB 4 USERS: it may look like your header(Location:xxx.php); instruction isn't working, but it really might be!Β For whatever reason, the preview function can kill it sometimes. Before you spend 9 hours trying a bunch of different tutorials and doing it over and over (Jay's really has been the best so far because he explains it VERY well), open your browser manually and type in your folder from the localhost/htdocs/…Β I promise it will be like magic and you will stop hating your computer.
Works fine .. max
Thank You Very Much Bro !! π
100% Worked !! π
please how do i get the database
Fantastic tutorial, thank you very much. You have a great accent too.
THANK YOU!
I keep having some errors it drives me insane…
The user fred doesn't exist…. and the variable dbUsername = dbusername without the capitalisation.
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'fred'@'localhost' (using password: YES) in C:apachehtdocsloginconnection.php on line 2
Failed to connect: Access denied for user 'fred'@'localhost' (using password: YES)
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:apachehtdocsloginindex.php on line 11
Notice: Undefined variable: dbUsername in C:apachehtdocsloginindex.php on line 19
Incorrect Password
Hello Jay, Its awesome video π so simple . thanks
Thank you Jay! It helps a lot! Your tutorial is well explained…
Thanks for this video.
I've only seen the first minutes of the video, but you should definitely encourage people NOT TO store passwords in plain text.
it just keeps sending me back to index, nothing.
Hey thanks for this video, nice calm and easy explanation π
probably the best video tutorial for making a login page!! thanks man!!
above my login on top of the "wrong password…" it says :"Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:xampphtdocs…….index.php on line 11.
Also it won't let me login with the correct information, but maybe that's because of the error.. I tried echoing the database variables ($dbUsername, $dbPassword) but it doesn't echo/show anything at all.
Great ! Finally I've learned Something from you π
A little help, please?
Notice: Undefined variable: dbUsername
very usefull!
Hi guys, I am incredibly busy at this time, so I'm really not able to provide much support. With that said, I will respond when I can, and I've now provided the link to download the completed code in the video description.
Hello Jay! Please make tutorial online http://www.hostinger.com/
Easy to follow and worked like a charm. Thanks for making the video
Not every hero wears a cape, thanks man
Would you consider this script safe? or secured from hackers?
Great tutorial! Its amazing how simple you made it!!!
Hi Jay, could you check your YouTube inbox please? π
Hello Jay! This is a wonderful online tut, and my problem is that even I used the correct user name and password, it is still echoing the "Incorrect username or password." and I believe I have coded after you line by line….
Mine just keeps going to my index.php when I click on the submit button. It's not even in my code that it should do that. I changed that. It won't echo out my variables it just goes to my index.php no matter what.
Hey Jay, thank you so much for the tutorial, I'm subscribing because it's the best tutorial I've found on php login, at least for me.
i have problem please read PM on Youtube , THX
When I click the login button it directly send me to the user.php page. Please help π
i get a error of undefined username & password in index.php