How To Create A Login System In PHP For Beginners | Procedural MySQLi | PHP Tutorial

  Рет қаралды 1,171,829

Dani Krossing

Dani Krossing

Күн бұрын

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 MySQL databases, which includes how to make a login form and a signup form. If you get any errors during this tutorial, make sure to check out my solutions at the very bottom of this description! :)
➤ LINKS
User Profile Page video (READ FIRST):
I decided that it would be better to create the Profile Page using Object Oriented PHP (OOP), instead of Procedural PHP. 🙂
OOP is MUCH better for creating BIG systems in PHP, and is more organized and considered the "proper way" of writing PHP.
I have a OOP Login System tutorial that I will link bellow, that I recommend you watch after this one. 🙂 And I will also link my OOP PHP course in case you are completely new to OOP PHP. 😉
Even though you can still follow along on the OOP Profile System video right after THIS Procedural Login System tutorial, I strongly recommend that you watch the OOP Login System first... Since it will be easier to follow along. 🙂
OOP PHP Course: • 1: Introduction To OOP...
OOP Login System tutorial: • How To Create A OOP PH...
OOP Profile Page tutorial: • How To Create a User P...
Install XAMPP & a local server: • 2: Installing A Local ...
Regular expressions (search patterns): • 59: Functions Using Re...
PHP Password Recovery System: • How To Create A Forgot...
➤ CHAPTERS
00:00:00 - Introduction
00:01:16 - How to get my lesson files
00:02:11 - What will you learn in this video?
00:02:48 - What security will we use?
00:03:41 - It's Procedural PHP, not OOP PHP
00:04:14 - If you get a error along the way...
00:04:48 - A demonstration of what we will make
00:08:20 - What YOU should have ready before we start!
00:12:52 - Creating our Header and Index pages
00:15:57 - Creating our Signup and Login pages
00:26:43 - Creating a connection to our database
00:33:16 - Creating our database
00:42:23 - Creating our Signup script
00:58:23 - Creating our Signup functions
00:58:23 - Testing our Signup system
01:24:46 - Creating Signup page error messages
01:26:47 - Creating our Login script
01:36:35 - Creating our Login functions
01:46:22 - Creating Login page error messages
01:47:47 - Changing our website when user is logged in
01:51:19- Testing our Login system
01:52:20 - Creating our Logout script
01:54:12 - Creating a welcome message when logged in
01:54:44 - Outro
➤ 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 to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Material for this lesson: / lesson-material-42361704
➤ ERRORS YOU MIGHT RUN INTO!!!
▸"signup=empty"
Make sure you wrote "mysqli_connect" and NOT "mysql_connect" in the dbh.inc.php file!
▸"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!
▸"signup=success 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.

Пікірлер: 1 800
@user-ez6uo7lv6m
@user-ez6uo7lv6m 2 жыл бұрын
This literally saved my life. This level of details is what I needed. Step by step, very clear, nice voice, extremely easy to understand. So far the best PHP tutorial video I've seen. HUGE THUMBS UP FOR YOU. Just thank you man!!
@12345629250
@12345629250 2 жыл бұрын
true am just waiting for the profile page tutorial.
@anonnmuzik737
@anonnmuzik737 2 жыл бұрын
@@12345629250 SAME!
@nomercy3422
@nomercy3422 3 жыл бұрын
RIP in chat for pple who just finished doing the last episode of his login system series and now they see a new better one
@Dani_Krossing
@Dani_Krossing 3 жыл бұрын
😈
@astigmatik
@astigmatik 3 жыл бұрын
that would be me.. now i have to rewrite my login system 😭 the old one works perfectly though. i modded it a bit but it works fine.
@VitalijsSikurinecs
@VitalijsSikurinecs 3 жыл бұрын
@@kfizzle3920 not realy. You must do it atleast once to understand basics.
@boukhadc
@boukhadc 3 жыл бұрын
@@nomercy3422 being better in php ? Instead of supporting old crappy companies which doesn't want to go nodejs, golang, rust, or swift there is no point.
@boukhadc
@boukhadc 3 жыл бұрын
@@nomercy3422 php means personal hosting page, it has always been a language designed for a hobbyist use. It shouldn’t be used in entreprise grade projects.
@DanielK48
@DanielK48 3 жыл бұрын
A couple of years ago I watched your video about login system with php and I made my course project for one of my university classes based around it and last week I even managed to land a job offer with the help of you and that same project. Thanks for your content, keep it up !
@navidnawaj
@navidnawaj 3 жыл бұрын
Man, this is the best tutorial. Unlike some random guy who just puts the built-in-functions without explaining, this dude explains every single thing. learned a lot of things. Thanks a lot.
@stormybear4986
@stormybear4986 3 жыл бұрын
There are a lot of tutorials on youtube covering php and mysql by non-native speakers of English. Yours are easily the best because even tho English isn't your mother tongue, you speak American English very clearly and well. your content is easy to understand and infinitely practical for developers of every level. I'm an experienced programmer but I'm still learning the intricacies of PHP programming and I love your tutorials the most of all on youtube. I'm a very proud patreon supporter. Tusend Tack!
@meol0390
@meol0390 3 жыл бұрын
~~And that's the issue -- "American English", don't get a word he says~~ Merry Christmas everyone!
@sharaudramey9336
@sharaudramey9336 3 жыл бұрын
I'm sure you thought that was a compliment because you're an American.
@AS_CAN
@AS_CAN 2 жыл бұрын
You're too funny dude. People are literally capable of learning 3 and 4 languages. Yet, you're struggling to understand a different accent of your native language! I would just say "YOU ARE AWESOME ! "
@stormybear4986
@stormybear4986 2 жыл бұрын
@@AS_CAN there are accents and there is non-standard English, that;'s my big issue.
@loosabway3400
@loosabway3400 2 жыл бұрын
Not sure we should classify 'American English' as being within the family of the English speaking world.
@durgasutharsan5292
@durgasutharsan5292 3 жыл бұрын
As a beginner in programming I appreciate you taking the time in explaining what every function is doing. I especially like the side notes 😁
@Andrew-pd6ey
@Andrew-pd6ey 3 жыл бұрын
10/10 tutorial if you understand HTML/CSS and can do that on your own, I started with only a tiny amount of the website built and was able to finish the tutorial with my own implementation (that's 80% identical to yours!). Easy to follow along the hours went quick. All of my bugs were fixable and usually some kind of dumb error.
@scott-richardson
@scott-richardson Жыл бұрын
As a PHP dev, this was fantastic to watch. I watched purely to see what kind of methods you used and left feeling really impressed by your teaching style. Obviously there's more to do in terms of security, such as using a login token system and checking that the user actually exists in the database using the stored session variables on every page, just in case an 'admin' has deleted that user for some reason since their last login etc. But fantastic video and this is a must-watch for aspiring PHP developers who want to actually build apps and websites (instead of using off the shelf crap like WordPress).
@elgobert
@elgobert 10 ай бұрын
Another off the shelf crap hater like me, Hello there !
@scott-richardson
@scott-richardson 10 ай бұрын
@@elgobert Hello friend!
@scott-richardson
@scott-richardson 8 ай бұрын
@@BestVideoMiner creating a session is only half the job. When high level of security is required, in an application or website with lots of users, you need to ensure the user exists in the database on every page load. You can’t rely just on the stored session variable after logging in. There may be cases where an administrator deleted that person’s account or bans them for some reason. They may already be logged in when this happens. So I typically use a login token system whereby we store an entry in the database in a table of “active sessions” and store a session variable/token in that database row. The row stores both the session data and the id of the user, allowing us to check both the user and the session data matches up with that which is stored on the website user’s session data.
@stormybear4986
@stormybear4986 3 жыл бұрын
Dani, I used to have the concern about having to pay to get the source code. But after thinking about it, I realize that the value you provide is worth so much more than $5 a month so I am a proud supporter of your work and I hope more people will consider it in that light. Other sites out there charge upwards of $20 a month for material that is not as good as yours.
@Dani_Krossing
@Dani_Krossing 3 жыл бұрын
I daily receive the same question from different people about having to pay $5 for the CSS file, so before asking here is my answer :) Yes you do need to be a Patreon supporter to download my lesson files INCLUDING the CSS file, and here are a few reasons why. 1: You should already know CSS at this point, therefore you should not need my CSS file. 2: This is not a CSS tutorial, and my subscribers has previously voted on me not including CSS in my future videos because it took too long. 3: You are not supposed to "just copy" from this video, you are supposed to "learn and apply" to your own website. Which means that ANY of the CSS used in this video is irrelevant to you. 4: People have already supported me on Patreon to get the CSS file, therefore I won't suddenly make it free to download. 5: Majority of my subscribers where the ones who pushed the idea of me using Patreon for my lesson files, and I have their full support in doing so. I keep getting comments where people want to argue with me on why they should get my lesson material for free. It is how I run my channel so deal with it :)
@atharvajoshi4824
@atharvajoshi4824 3 жыл бұрын
Most awaited 🔥🔥🔥🔥
@maxkaye7873
@maxkaye7873 3 жыл бұрын
@@fboag I made my first steps in PHP a couple years ago with Danis free KZbin-lessons. It's only fair, that he makes some earnings with his courses and documentations (and mostly with his patient kindness to answer lots of questions here for free) now! I think, that anyone who really appreciates his work, does'nt have a problem becoming a patreon of him. All the dissatisfied naggers shall go searching pokémons, imo.
@cianliddy8639
@cianliddy8639 3 жыл бұрын
Hey dude, you should update your old videos with your new links. It took me a while to find a way to your Patreon page. I assume some links got lost when you retired MMTuts.
@Dani_Krossing
@Dani_Krossing 3 жыл бұрын
@@cianliddy8639 Replied to you on your first comment ;) but yes you are right.
@hansgwapoeh728
@hansgwapoeh728 3 жыл бұрын
Can you make another episode creating a point of sale system in visual studio??
@GabrielSilva-yk6sk
@GabrielSilva-yk6sk 2 жыл бұрын
Thank you so much Dani! i tryed to do this login system one month ago when i started coding and i didnt even pass the first part of the tutorial, i've been studying code almost everyday this passed month and today i finally make it to the end, of course i had non working css, errorrs, blank pages and a lot of frustration, but my login system is working fine just as yours now, thank you for the content your videos are the best!
@truthteller4731
@truthteller4731 2 жыл бұрын
I could actually cry watching this video! I have been struggling with this for months trying to understand the theory rather than just copying what someone is doing - absolutely amazing video, thank you soooo much!!!
@yogeshc7241
@yogeshc7241 3 жыл бұрын
I have never commented in you tube in my lifetime , But I have to appreciate this. Best video in you tube about login system . You're really awesome man! . Thank you so much
@matthewandersen8209
@matthewandersen8209 3 жыл бұрын
You are the best development teacher I have ever watched. You explain very well and you make brilliant content. It’s because of people like you that I absolutely enjoy development 😁👌🏽
@joshl1237
@joshl1237 2 жыл бұрын
3 days ago I found your video and left a comment, i followed the full tutorial and completed it, this saved me for my assignment next week and I can't thank you enough!
@nobleinexile4296
@nobleinexile4296 2 жыл бұрын
Dude, Thank you so much for this, your content and explantions are a cool mix of professional and relaxed and I really enjoy it. I love the Coder Community thanks to people like you!
@jessigee9201
@jessigee9201 Жыл бұрын
Wow! Less than 15 minutes into the video and I'm already a believer! Your narration and examples are clear and helpful. I'll be signing up for your Patreon! Thanks!
@sixtusushahemba9419
@sixtusushahemba9419 Жыл бұрын
Thanks for making such a great tutorial, you literally explained everything the way I expected. I am just starting in PHP but I think I would be much better if I learn more from you. Really appreciate your effort, keep it up!
@pseuda
@pseuda 2 жыл бұрын
Around 12 hours - not in a row - studying the concepts during this amazing video. Thanks!
@Quill9056
@Quill9056 3 жыл бұрын
Thank you Dani. Perfect video, I was able to get a login system working for a new backend area of my website. I had some head banging moments, but as with everything in my life, it all came down to mundane things like spelling, and punctuation. I'm in the process of moving a system that was created in access to mySql and the web so I am sure I will be utilizing a bunch of your videos!
@lifenote1943
@lifenote1943 2 жыл бұрын
this tutorial is a banger, I had no idea how to get started on back end, and this gave me all the basics I needed.
@nomoremrniceguy007
@nomoremrniceguy007 3 жыл бұрын
I just want to say Dani, you are awesome. Finally a programming teacher who is detail oriented. I usually get stuck on the small details that get skipped over by most teachers, like for example that it is MySQLi now instead of MySQL. That or perhaps that detail about not closing the PHP tags on PHP only documents. I will be pledging to your patreon as soon as I can afford to. I can't begin to tell you how important your content has been. Oh yeah and I'm 1/4 Danish, it's cool to find a Danish KZbinr.
@tiagomota4734
@tiagomota4734 Жыл бұрын
I mean , its really hard to understnad anything....he explained a few things but then he was "its a function..." "its a function....." ah and the logic behind it is unknown and it dosnt make sense coz youre a beginer...Anyways if this makes sense for any beginer than i might be extremly low IQ and i should asap just quit everything that im doing!!
@nomoremrniceguy007
@nomoremrniceguy007 Жыл бұрын
@tiago mota don't give up, it's just really tough to learn at first and you might need to follow a lot of KZbinrs to get it at first.
@tiagomota4734
@tiagomota4734 Жыл бұрын
@@nomoremrniceguy007 I will not give up man, thank you for the encouragement! The thing is that, i dont belive to be really newbie friendly at all , you need a base before doing this for sure! thanks again!
@9core
@9core Жыл бұрын
Great video. It took a couple tries to finish due to some issues on my end, but my log in system is working fine now. Thanks so much Dani. As an absolute beginner, I haven't found another free tutorial as easy to follow as yours. I really got to learn a lot.
@tarungopinath3149
@tarungopinath3149 2 жыл бұрын
DANI MAN! YOU SAVED ME G! I'm completing my sem project and was facing lotta issues. This video is absolute GOLD! The way you explain with ease, the clarity in the code and also features like hashing and protection against sql injection! MAN! Thanks is a small word!
@ayushshukla1218
@ayushshukla1218 3 жыл бұрын
Bro , you are making really great content . Just a suggestion , you can make more project videos on following topics : 1) Password Recovery system in php . 2) Email verification in php . 3) Phone number verification using OTP in php . 4) Chat application in Php . 5) CMS building using Php . 6) Wordpress theme development in Php . 7) Payment gateway integration in php . 8) Ecommerce website development in php . 9 ) Shopping cart creation in php . 10) Search Field creation in Php . 11) CRUD operation in Php . 12) Online forum website in php etc . This list is not exhaustive , however for a beginner these projects will boost moral .
@Anox3D
@Anox3D 3 жыл бұрын
Yeah should be really great. Plus I really need some things in this list x)
@mythbuster3567
@mythbuster3567 2 жыл бұрын
Do it yourself, be more creative!!! You the ideas from this and expend more!!!!
@ahmnicoleee
@ahmnicoleee 3 жыл бұрын
You, sir, are a life-saver. My peers and I tend to not attend our platform-based development course because our instructor spends three hours "teaching" us, but we always end up doing our own research to understand the lessons. I feel the warmth of not failing my classes right now hahahahaha
@andy_berlin
@andy_berlin 3 жыл бұрын
These tutorials have been invaluable for me in getting my site up and running. Occasionally a user manages to create two identical accounts - has anyone else had this problem and more importantly managed to patch that problem?
@gabrielfono844
@gabrielfono844 3 жыл бұрын
thanks so much this tutorials has no price to be honest I remember learning html css and js and from there I taught myself react and build multiple app using strapi on my backend. I started teaching myself php 4 days ago and everything makes sense because I have a really good javascript background. I would incorporate this login page into my most of my project just to add my chance to get hired as full stack dev here in waghinston dc. thanks God bless you forever
@Madie-si6me
@Madie-si6me 3 жыл бұрын
Best tutorial ever !! Hope to see how you do your Profile Page very soon.
@oilfieldconnect6668
@oilfieldconnect6668 3 жыл бұрын
Success, this is my perfect learning style, over the shoulder, lots of basic concept explanation and own hands on practice ... brilliant
@joepetey
@joepetey 3 жыл бұрын
Really enjoying adding a login to my JS /html assignment from last year. Never touched PHP only JS/html/css so am enjoyed your tutorials and adding in a feature I wasnt aware of.
@raskolnikov3799
@raskolnikov3799 2 жыл бұрын
Genuinely some of the best tutorials I've been able to find on KZbin.
@Dan_ny
@Dan_ny 3 жыл бұрын
Really enjoyable 2 hours... sad to see there are no new related videos.
@coltonaallen
@coltonaallen 2 жыл бұрын
@@Lwyrup1 who hurt you as a child?
@jonmat7144
@jonmat7144 3 жыл бұрын
Awesome content and a very good instructor, you make it very fun and professional videos 'always' - thank you so much, Daniel.
@purecz
@purecz Жыл бұрын
You deserve a medal, cleanest, probably even fastest and also WORKING tutorial. Your voice and accent is pleasing to hear. Thank you and just so you know, you earned another SUB.
@MrLucaR80
@MrLucaR80 3 жыл бұрын
I "drank" almost 2 hours video without breathing! Amazing! your explanation is great and the attention never goes down, and my native language is not english: you did a very good job! You will be my Master!
@harpiesd96
@harpiesd96 2 жыл бұрын
Amazing tutorial! It was super easy to follow, and I learned a lot! Thank you!
@arattactician5697
@arattactician5697 2 жыл бұрын
Finally got everything working. A fantastic tutorial, easy to follow and very well explained. Thank you for making it!
@kimanijoseph8837
@kimanijoseph8837 Жыл бұрын
You didn't get an error? on preg_match?
@nyabutijumajustus7130
@nyabutijumajustus7130 7 ай бұрын
Me i got an error when sign up, can assist me please
@mitygamedev5650
@mitygamedev5650 2 жыл бұрын
That moment when you remembered to include session start in header :D 1:48:16 , remember break is important and we all appreciate the tutorials !! great job.
@Alireza-yw8yq
@Alireza-yw8yq 2 жыл бұрын
I am a new PHP learner and I saw many videos for other programming language and you are the best instructor that I ever see
@beratahmetaj
@beratahmetaj 3 жыл бұрын
literally the best tutorial and the most understood one ive seen.
@aliaghamiri4699
@aliaghamiri4699 2 жыл бұрын
Dani, this episode was pretty helpful, thank you for your efforts.
@brianedwards30
@brianedwards30 3 жыл бұрын
I've been wanting to pick up the xampp stack for a while and this is a great video on the subject.
@rafaelbuksa4784
@rafaelbuksa4784 2 жыл бұрын
Thank you so much, man! Helped me a lot with my uni project! Watched it from start to finish, really good tutorial.
@plymouthhench1373
@plymouthhench1373 2 жыл бұрын
Genuinely this is a really really well made tutorial, just wanted to thank you for helping me get through my computer science coursework. What I love is that you explain the code you are typing, whereas most other videos don't bother, which means that I don't forget them. Again, many thanks for creating this gem. :)
@shargenezangana9320
@shargenezangana9320 3 жыл бұрын
Hello. Your channel has helped me learn this beautiful craft. I can not express how grateful. When I start making money. I will be contributing to your patreon. Thank you again.
@belowsurfacemedia
@belowsurfacemedia 3 жыл бұрын
hey dude! i worked this tutorial through twice to get it working! learned a lot about php here. thank you! well produced video, especially compared to most other php tutorials :D
@gregrosenquist664
@gregrosenquist664 Жыл бұрын
Hey Dani, great tutorial. The only thing I would say is to get more detailed on putting error messages under each field for a better user experience. I did figure it out though and created that functionality on my own. Again, great work!
@fabianboro4686
@fabianboro4686 3 жыл бұрын
Okay, now I'm struggling for making the profile page. Anyway, lot of thanks, man. They never teach me on college so I have to learn it all by myself. Like, wtf why do I have to go to college while I can learn from you for free. I just need the paper bachelor degree from there cuz literally I got nothing or just a 10% knowledge and 75% sacrifice.
@Ginfio
@Ginfio 3 жыл бұрын
I’ve always been wanting to learn and understand how to connect with the database... send stuff to the database, and things like that. FINALLY a video which makes sense. Thank you so much.
@gonefishing2006
@gonefishing2006 3 жыл бұрын
I'm doing this to get the basics down and yeah I just saw something about a new updated one. But I want to learn and Dani's videos have been a great help (so far).
@janwillemkeen
@janwillemkeen 3 жыл бұрын
I really enjoy you significantly repointing out the fact what this tutorial is Not! :) Unlike many other tutorialists out there i dont get anoid by your lecture after a few hours. So thats a compliment. Keep up the good work.
@nils_b
@nils_b 2 жыл бұрын
For those who are on mobile and don't wanna clip at the caption all the time :) 00:00:00 - Introduction 00:01:16 - How to get my lesson files 00:02:11 - What will you learn in this video? 00:02:48 - What security will we use? 00:03:41 - It's Procedural PHP, not OOP PHP 00:04:14 - If you get a error along the way... 00:04:48 - A demonstration of what we will make 00:08:20 - What YOU should have ready before we start! 00:12:52 - Creating our Header and Index pages 00:15:57 - Creating our Signup and Login pages 00:26:43 - Creating a connection to our database 00:33:16 - Creating our database 00:42:23 - Creating our Signup script 00:58:23 - Creating our Signup functions 00:58:23 - Testing our Signup system 01:24:46 - Creating Signup page error messages 01:26:47 - Creating our Login script 01:36:35 - Creating our Login functions 01:46:22 - Creating Login page error messages 01:47:47 - Changing our website when user is logged in 01:51:19- Testing our Login system 01:52:20 - Creating our Logout script 01:54:12 - Creating a welcome message when logged in 01:54:44 - Outro
@xyzqsrbo
@xyzqsrbo 3 жыл бұрын
this is literally the best video I've ever seen on youtube, period.
@primatz3548
@primatz3548 3 жыл бұрын
Hi. Can u share your php files from this lessons. Want to check why my doesnt work. thanks!
@Pwnedby
@Pwnedby 3 жыл бұрын
@@primatz3548 you can check on the video or go to his patreon
@zzzzzantiago
@zzzzzantiago 3 жыл бұрын
Thank you! i have been looking for videos about PHP Sessions since yesterday and i just understood it well with your video.
@fondersonsivan9672
@fondersonsivan9672 28 күн бұрын
So great, my sign up and login system amazed everyone at school. Thanks Dani, you're the best web development teacher I've seen and had
@milehigh8234
@milehigh8234 3 жыл бұрын
This guy taught me everything I needed to know. He's worth listening to. Trust me
@paulhackel6311
@paulhackel6311 3 жыл бұрын
true
@adotinthecosmos
@adotinthecosmos 3 жыл бұрын
Dani you are the man! If anyone is having trouble with password_verify() always being false: make sure the password column in the db is set to varchar(128)
@rdwanrekani9447
@rdwanrekani9447 Жыл бұрын
ت
@emystylez_x
@emystylez_x Жыл бұрын
It’s not working 😢
@tigerz1144
@tigerz1144 Жыл бұрын
Absolute legend! Thank you for this Dani. You've really helped me get through my final year project for university! I have referenced you in my bibliography.
@giorgospapoulidis8134
@giorgospapoulidis8134 Жыл бұрын
very helpful. he actually showed how php, html and databases (and css i guess) relate to each other. if you are starting a project, anything said here is a must
@CaptainAwesomeVlog
@CaptainAwesomeVlog 3 жыл бұрын
An excellent tutorial, very well presented. The code is clear, and easy to modify. I went through the entire video, wrote the code as presented, and ended up making some changes to suit my purpose. Everything works perfectly. Good job all around.
@tiagomota4734
@tiagomota4734 Жыл бұрын
You might not be a beginer coz its impossible for me or i might be extremly stupid...i dont have any PHP experience and this seems to be impossible to understand the guy is like " and is this function" im like wtf is that?! and nothing makes any sesnse,,,this is not intuitive at all ...
@umadd_
@umadd_ Жыл бұрын
​@@tiagomota4734 if you don't know what a function is you don't know programming at all xD watch a cs50 course or something
@miquel2423
@miquel2423 3 жыл бұрын
Hey, great video @Dani Krossing. This really improved my understanding and helped me grow. I'm currently stuck with one final error and I can't get this one done! When I am signed up and click on the "Log out" link, I get a 404 error. (The requested URL was not found on this server.) And I'm 100% sure that the connection () in the header is working, atleast php gives no errors in the script, double and single quotes positioned perfectly. No errors. Also I ran the log-out script manually, and it actually logs me out so the script works just fine. So if you have any tips or any else who is reading this comment, every tip would be greatly appreciated! Edit: I've made some progess. My localhost says that the header.php file doesn't exist, but the header shows on everypage and works fine. (except for the connection with logout.php). Also I checked the pathing in my file explorer and phpstorm and it should show on Localhost, but it does not. Very weird. So I think it has to do something with that. Welp, I've fixed it. When I put the content of header.php on a new made file (I called it hello(header).php) on a different file folder and adjusted the file pathing on every page it actually worked. The header was shown on the localhost. I still don't really get it, it only makes 50% sense for me XD. The logout works fine now because the header content exists now. Weird part was that the header content worked fine on the other pages so that's why it only makes 50% sense for me.
@sudanimalsha4877
@sudanimalsha4877 2 жыл бұрын
I am following you since long time. I learned many programations starting from zero. I became a professional développer because of you. Thank you very much
@kumar-manoj
@kumar-manoj 2 жыл бұрын
Thank you very much. Learnt a lot about logging in, functions in php. It was very helpful. Appreciate your efforts even for helping us handling errors, by describing them in description.
@forhad1_
@forhad1_ 3 жыл бұрын
Please Make it in OOP with PDO connection.Please Continue your OOP PHP series. Lots of ❤️ from Bangladesh 🇧🇩
@HankUNVEU
@HankUNVEU 3 жыл бұрын
This. Exactly. :D except the ❤️ , that comes from somewhere else. Was just watching part 18 and boy was that a cliffhanger xD
@rangilamaurya6405
@rangilamaurya6405 3 жыл бұрын
Sir, can you make a tutorial on profile system i.e after logged in user can change there name password and also to upload profile photo.
@abderraoufhadjkaci2729
@abderraoufhadjkaci2729 3 жыл бұрын
i'm pretty new to PHP, like i know only the basics, but from all the programming languages, PHP is the one that i found the easiest one to understand
@michaelbarron6687
@michaelbarron6687 Жыл бұрын
Dani, I love your videos. You explain everything so well and are an excellent teacher. You are clearly a master of the craft. Thank you so much for taking the time to make these tutorials.
@teamomula
@teamomula 3 жыл бұрын
I just finished building along with your other PHP login from like 3 years ago 😭😭 literally yesterday lmao how could u do this to me Dani (jk I love your content thank you so much LOL)
@wailtag6406
@wailtag6406 3 жыл бұрын
Saaaameeee
@maartenvanderlei88
@maartenvanderlei88 3 жыл бұрын
when is the profile page tutorial comming up? i just watched the log in from 2018... so i am watching this one right now.
@jeffrydelgado5334
@jeffrydelgado5334 3 жыл бұрын
Your videos really helps me a lot in my studies. Keep up the good work man! I really appreciate your efforts explaining the reason of errors encountered in this login system, Thank you so much!
@norbski66
@norbski66 3 жыл бұрын
This is a great video. I followed along with it all the way and got there in the end (with a few little errors on the way!) Thank for taking the time to make it. :)
@brendanlittle3706
@brendanlittle3706 3 жыл бұрын
Great video, When’s the profile tutorial coming out ?
@pcprodoc
@pcprodoc 3 жыл бұрын
I looked though his video list and I did not see it. Inquiring minds wanna know. When? When? When?
@_mkeey1906
@_mkeey1906 3 жыл бұрын
Is it possible, to create a tutorial for a login system with roles? User 1 role 1 = admin, see everything. User 2 role 2 = user, just see what users should see and so on. Would be amazing if there could be done this. No SignUp needed, just a login system with roles. Thanks for your amazing tutorials.
@sebastianolivares3021
@sebastianolivares3021 2 жыл бұрын
YES i did that in my final tesis at university you can use the same page file and just with php parameters say if admin will see h1 hello im admin and user 2 hello im not admin it will be the same page but conditioned what usertype will see
@Missojosverdes
@Missojosverdes 3 жыл бұрын
Love your videos and your energy! You make it clear and simple ^^
@landogriffin860
@landogriffin860 3 жыл бұрын
Thank you! great guide and I was able to setup a final for class
@kastore100
@kastore100 3 жыл бұрын
Hi, Can I have a request to sometime in future expand this login tutorial, to login / register with mail aproval? Oh and I need to inform you that based on you old tutorials from before 2016 I have learned enough to got into IBM's PHP developer team.
@strangelpeaceful
@strangelpeaceful 3 жыл бұрын
Wow IBM has low standards.
@cl4ssychap883
@cl4ssychap883 3 жыл бұрын
@@strangelpeaceful lmao you are so rude
@strangelpeaceful
@strangelpeaceful 3 жыл бұрын
@@cl4ssychap883 I may be rude but at least I'm honest
@anisexpert4604
@anisexpert4604 3 жыл бұрын
@@strangelpeaceful bro do you have any informations about IBM !
@eb4416
@eb4416 3 жыл бұрын
I guess he means that it is no big deal to check on your own how to implement a mail authentication for registration - and therefore no IBM developer should be even asking for a video of this kind in here. That's my interpretation ^^'
@blessingssinamane8516
@blessingssinamane8516 3 жыл бұрын
May you please link us to somewhere where we can learn the extra security that is needed as you mentioned in the beginning of the video
@ganiyumubarak4270
@ganiyumubarak4270 2 жыл бұрын
I love the method of teaching. I've watched some of your tutorials movies on KZbin and helps me a lot. Actually, there are a lot of tutorials movies on KZbin but yours is difference and the best.
@hitesh8965
@hitesh8965 2 жыл бұрын
you really made learning easy man!!! thank you so much.... made a login system for my website using your video with slight modifications..... you explained every line properly ....thank you so much!!!
@Airixsas
@Airixsas 3 жыл бұрын
I would love to see profile system tutorial
@princealien6448
@princealien6448 3 жыл бұрын
I just wanna ask when will you release the tutorial about the user profile? thank you. this video help us out with our project a lot.
@saideepchettri3
@saideepchettri3 2 жыл бұрын
Yes I’m waiting
@pastorjosephshonubi3038
@pastorjosephshonubi3038 2 жыл бұрын
this is the best tutorial I have watched so far. It is very easy to follow and self explanatory. Thanks
@joeylo2365
@joeylo2365 2 жыл бұрын
That's really complete, easy understand and very practical login system from zero to full function. Thank so much to share your knowledge and I will apply this in my future project. Thanks so much !!!
@Knuddelfell
@Knuddelfell 3 жыл бұрын
To the early squad: *May you and your family live long and stay healthy*
@Knuddelfell
@Knuddelfell 3 жыл бұрын
@amir sadeh k..^^
@retardedguy9847
@retardedguy9847 3 жыл бұрын
I finished watching the other video regarding this that had been made like 2byears ago😂
@sargentlemone8651
@sargentlemone8651 2 жыл бұрын
It fells so incredible amazing if you finally find your little mistake after days of strugglin, your amazing keep doing those videos!!!
@umersaeed6032
@umersaeed6032 Жыл бұрын
I find your video to be straight forward and easy to follow. Keep up the great work. Thanks
@digitalminister5687
@digitalminister5687 3 жыл бұрын
01:03:16 the small arrow character is called a 𝗰𝗮𝗿𝗲𝘁
@furiusfighter3415
@furiusfighter3415 3 жыл бұрын
Still get the same error like in the last video, it’s the last possible error to get in the functions.inc.php when it tries to insert the input into the databank. I am connected to the databank, because I can select from it and can see if the username is taken, but it won’t insert data into it
@radukapu
@radukapu 2 жыл бұрын
Amazing video. I’m doing small project and never done login page. You made great , easy to understand tutorial that explains everything. Thank you for sharing!
@johanneslepsius152
@johanneslepsius152 3 жыл бұрын
Thank you so much for this awesome project! Great explanations, i learned a lot and you answered many questions i had before i came here!
@sebastianmircea3856
@sebastianmircea3856 3 жыл бұрын
For anyone getting invalidUid or invalidEmail at signup, remember the '!' before preg_match and filter_var.
@cyberstonks
@cyberstonks 2 жыл бұрын
MY MAN! You fixed my problem!
@Teddyrobinson
@Teddyrobinson 2 жыл бұрын
Ayyyy thanks
@Blackjac
@Blackjac 2 жыл бұрын
many thanks man, I didn't notice that. Still isn't creating a user though...
@asstoped4088
@asstoped4088 3 жыл бұрын
I have a question, when you did that thing "to prevent SQL injections" you used it only in sign up form, not in log in form... So he can destroy the database through the log in form
@kyraex4414
@kyraex4414 3 жыл бұрын
He did actually by re-using the uidexists function which prepare the statement and return the row if user entered with a correct login details.
@munteanionut3993
@munteanionut3993 3 жыл бұрын
Maan I love people like this guy. Kudos to u, my dude!
@heckyes
@heckyes Жыл бұрын
I'm impressed there are still people writing PHP at such a low level and in such an old-school kind of way. Generally I find that everyone is all about object oriented development and grabbing a large framework and then plugging various other libraries into it and connecting them together.
@Dani_Krossing
@Dani_Krossing Жыл бұрын
I think you missed the point here... 🙂 Yes... if you are going to build any real production ready websites, then you should not re-invent the spoon. There already exists frameworks or CMS plugins that allow you to make login systems, which in most cases will be more secure than what you can come up with. This however, is a educational video. This video is to help people get the hang of PHP, while at the same time building something to help them understand how databases work. So when you come in here writing: "I'm impressed there are still people writing PHP at such a low level and in such an old-school kind of way. " ... Then you are degrading the people who are here to learn. 👈 The people who are new to PHP and struggle while trying to learn from this video, are gonna watch your comment and get demotivated. I am a "teaching channel", not a "how to" channel. 🙂 So please be mindful about comments like these.
@heckyes
@heckyes Жыл бұрын
@@Dani_Krossing You couldn't be more wrong about my comment. I've written PHP almost exactly the way you wrote it here in your tutorial and have been since the early 2000's. I write PHP in my job, every day using the exact kind of techniques you are teaching. That's why I'm impressed there are still people writing and teaching PHP this way. Go take a look around on KZbin, it's you and like 3 other people that are teaching procedural PHP. I much prefer procedural PHP, and mysqli because it's simple and fast.
@Dani_Krossing
@Dani_Krossing Жыл бұрын
Ah my apologies for misunderstanding then hehe 🙂 You are right. Most people on KZbin are more concerned with teaching PHP in a more practical sense. And imo that can quickly throw off a lot of people, who might not have a natural affinity for programming. So teaching in a much more “simplified way” through a Procedural non-framework approach, can help get those people caught up. 🙂 And once they feel comfortable enough, they can take the next step into a more practical PHP learning path. 😊
@heckyes
@heckyes Жыл бұрын
@@Dani_Krossing I appreciate you doing that. I've always stressed it's better long term as a student to have a firm understanding of the fundamentals before you try to move on to frameworks and libraries, that way you can appreciate what the framework/library is doing for you AND if that framework of library malfunctions you'll at least be capable of understanding the problem, if not outright fixing it yourself.
@fabianbeck9567
@fabianbeck9567 3 жыл бұрын
When does the profile page episode go online? I need this one😅
@yousufsulaiman2211
@yousufsulaiman2211 3 жыл бұрын
Mee too
@zindovic8721
@zindovic8721 3 жыл бұрын
Do anyone know why $_POST dont get values from inputs and if i wrote everything properly? Thanks
@ThiagoPereira1
@ThiagoPereira1 3 жыл бұрын
@akshaysb526
@akshaysb526 2 жыл бұрын
i have also the same problem
@carlosmaralit8784
@carlosmaralit8784 Жыл бұрын
I really like how Mr. Dani explain, its very pleasing and you can really get what he want to say because he uses simple words which is pretty awesome for beginner like me. I learn a lot in your video tutorial, many thanks:)
@NARD22
@NARD22 3 жыл бұрын
Thank you so much , man! This tutorial was amazing, greetings from Romania! 🤩
Этого От Него Никто Не Ожидал 😂
00:19
Глеб Рандалайнен
Рет қаралды 6 МЛН
白天使和小丑帮助黑天使。#天使 #超人不会飞 #超人夫妇
00:42
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 8 МЛН
Connect to MySQL with PHP in XAMPP / Create a new database
6:41
Ken Swartwout
Рет қаралды 1,8 МЛН
How to Make Login Form in PHP and MySQL
12:53
OnlineITtuts Tutorials
Рет қаралды 1,4 МЛН
How to Upload Website with Database Online for FREE (Php MySql)
9:53
Trending Youth
Рет қаралды 349 М.
Этого От Него Никто Не Ожидал 😂
00:19
Глеб Рандалайнен
Рет қаралды 6 МЛН