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!
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 ! "
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!!
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 !
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).
@@irisconnection_Official 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.
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 :)
@@fboag I made my first steps in PHP a couple years ago with Danis free TH-cam-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.
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.
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!
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
I'll be honest… this is the best tutorial for PHP logins, logouts and signing in, i integrated it into a school project, the only difference being that i didn't use MySQLi, instead i used curl to communicate with a script to store my data as a JSON file in my drive as i don't really have a dedicated server yet… i just started using PHP and with this tutorial and a little bit of fundaments of PHP i think i can now continue and finish my school project
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.
@@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.
@@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.
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!
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 .
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
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 TH-camr.
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!!
@@thegentofculture 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!
Free + timestamped + godly soothing voice + easy to follow + notes + comprehensive discussion + little details Are you Jesus? I'm happy to live in an era where information like this is readily available to me. As a student, you make my life a lot easier and I want to thank you for that
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.
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)
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.
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 😁👌🏽
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.
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.
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.
@@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 TH-cam, 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.
Ah my apologies for misunderstanding then hehe 🙂 You are right. Most people on TH-cam 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. 😊
@@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.
I've learnt php just from you and I love it. You explain everything so well that I understand what's going on, and how to use it in different situations.
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
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.
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!!!
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
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. :)
For those who are getting HTTP Error 500 (This page isn't working), look for PHP extension nd_mysqli and see if it is checked. I really appreciate all your work. Great teacher Dani!
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!
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!
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?
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.
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 ^^'
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.
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
If you get HTTP ERROR 405 just install PHP Server extension on Visual Studio Code and execute the PHP code with it and it will work! (You execute it with a blue icon ubicated at the upper right corner of Visual Studio Code). Hope this works for someone, I was stressing with this error but now it's solved! Great Video Dani by the way, I love your way of teaching and the value you're providing to this community, you're amazing and thank you for your hard work...! You deserve more...!
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!
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.
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 ...
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)
Works perfectly! Tysm! Just wondering why you can't use OR (||) in your if statement for the different error messages? (I tried, and it seemed to just pickup if there was any error message. Mine is used to reopen the modal for my signup form, so wouldn't be good if it opened on EVERY error xD).
There are MANY ways to check for error messages, and it all just boils down to "which is more optimal for the specific situation". 🙂 Using || or && operators is also a way to do it and will work as well, however it can create very long and hard to read conditions. As well as the fact that you can't separate errors to get unique outcomes. So it is all about knowing the pros and cons if you decide to do it differently, and then being able to defend "why you decided on that approach". 🙂 The only "wrong" thing to do, is to "not check if there is a better/cleaner way".
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.
Hi Dani, this is a great tutorial. Thank you so much for this. I have a request though. Many of us are learning to apply this knowledge in our projects. You said it yourself that this was only for beginners and not secure. It may not be practical for us to actually use it commercially. Can you please make an advanced tutorial? One which we could rely on to use in our commercial or personal projects? Please? I request you to make an advanced version of this tutorial to fulfil three requirements: 1: Make it using PHP 8 2: Make it secure and safe to be used commercially (as much as you can) 3: Make it by following object oriented principles instead of using procedural PHP All of the tutorials on TH-cam are only useful for local servers and none of them are practical and useful in any meaningful way except learning as a beginner. I really hope you change that. :)
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
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:)
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
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!
May be the CSS skin button tag and not "input[type=submit]"; or just to demonstate we can do that. (note : the default "type"for "button" tag is "submit") ;-)
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.
Hello great tutorial i just have two issues first being that in functions.inc.php i get $result; undefined variable and second is in signup.inc.php in nameExists i dont have uid so i just have it as nameExists it is telling me that there needs to be 3 expected arguments and i just have two $conn $name when i added for example $email issue did go away but i think it wont run as it supposed to so if you can help me thanks and if you cant either way thanks i will somehow find a solution :D
Sir, I am getting this error in Visual studio even after correcting all syntax errors Please help me out : Unexpected 'Name'. Expected ';'.intelephense(1001)
@@supernovattm620 Define results as emoty string at the start of function $results="" Didn't show error but warnings only in visual studio Code will run even if you don't define result
Whenever I have to learn something in PHP, I first visit Dani's Video. If I can't find a video of what I am looking for, then and then I go to other TH-camrs' videos.
Thank you. I have a working login system that makes sense to me. This was worth the several hours I spent following this video. I can't wait to learn more about sessions
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.
This saved my project....I can't thank you enough. And i actually start to understand how this stuff works. Gonna work my way now through all your vids. subscribed!
Source code is available in the video description 🙂 No need for the passive aggressive tone, just move on to another persons channel if you dislike how I make my content.
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!
~~And that's the issue -- "American English", don't get a word he says~~
Merry Christmas everyone!
I'm sure you thought that was a compliment because you're an American.
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 ! "
@@AS_CAN there are accents and there is non-standard English, that;'s my big issue.
Not sure we should classify 'American English' as being within the family of the English speaking world.
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!!
true am just waiting for the profile page tutorial.
@@12345629250 SAME!
Same, Dani appreciate the attention to detail!
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 !
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).
Another off the shelf crap hater like me, Hello there !
@@elgobert Hello friend!
@@irisconnection_Official 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.
As a beginner in programming I appreciate you taking the time in explaining what every function is doing. I especially like the side notes 😁
Really enjoyable 2 hours... sad to see there are no new related videos.
@@Lwyrup1 who hurt you as a child?
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 :)
Most awaited 🔥🔥🔥🔥
@@fboag I made my first steps in PHP a couple years ago with Danis free TH-cam-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.
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.
@@cianliddy8639 Replied to you on your first comment ;) but yes you are right.
Can you make another episode creating a point of sale system in visual studio??
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!
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
I'll be honest… this is the best tutorial for PHP logins, logouts and signing in, i integrated it into a school project, the only difference being that i didn't use MySQLi, instead i used curl to communicate with a script to store my data as a JSON file in my drive as i don't really have a dedicated server yet… i just started using PHP and with this tutorial and a little bit of fundaments of PHP i think i can now continue and finish my school project
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.
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.
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
😈
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.
@@kfizzle3920 not realy. You must do it atleast once to understand basics.
@@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.
@@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.
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!
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 .
Yeah should be really great. Plus I really need some things in this list x)
Do it yourself, be more creative!!! You the ideas from this and expend more!!!!
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
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 TH-camr.
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!!
@tiago mota don't give up, it's just really tough to learn at first and you might need to follow a lot of TH-camrs to get it at first.
@@thegentofculture 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!
Free + timestamped + godly soothing voice + easy to follow + notes + comprehensive discussion + little details
Are you Jesus?
I'm happy to live in an era where information like this is readily available to me.
As a student, you make my life a lot easier and I want to thank you for that
This guy taught me everything I needed to know. He's worth listening to. Trust me
true
this is literally the best video I've ever seen on youtube, period.
Hi. Can u share your php files from this lessons. Want to check why my doesnt work. thanks!
@@primatz3548 you can check on the video or go to his patreon
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.
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
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)
ت
It’s not working 😢
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.
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 😁👌🏽
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.
literally the best tutorial and the most understood one ive seen.
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.
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.
@@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 TH-cam, 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.
Ah my apologies for misunderstanding then hehe 🙂
You are right. Most people on TH-cam 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. 😊
@@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.
Finally got everything working. A fantastic tutorial, easy to follow and very well explained.
Thank you for making it!
You didn't get an error? on preg_match?
Me i got an error when sign up, can assist me please
I've learnt php just from you and I love it. You explain everything so well that I understand what's going on, and how to use it in different situations.
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
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
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.
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!!!
Best tutorial ever !! Hope to see how you do your Profile Page very soon.
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
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. :)
i usually dont comment on videos but i just want to say this was incredibly helpful and thos guy deserves way more praise! thank you!
Please Make it in OOP with PDO connection.Please Continue your OOP PHP series.
Lots of ❤️ from Bangladesh 🇧🇩
This. Exactly. :D except the ❤️ , that comes from somewhere else.
Was just watching part 18 and boy was that a cliffhanger xD
For those who are getting HTTP Error 500 (This page isn't working), look for PHP extension nd_mysqli and see if it is checked.
I really appreciate all your work. Great teacher Dani!
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!
It fells so incredible amazing if you finally find your little mistake after days of strugglin, your amazing keep doing those videos!!!
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!
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?
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.
Wow IBM has low standards.
@@strangelpeaceful lmao you are so rude
@@cl4ssychap883 I may be rude but at least I'm honest
@@strangelpeaceful bro do you have any informations about IBM !
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 ^^'
Genuinely some of the best tutorials I've been able to find on TH-cam.
Success, this is my perfect learning style, over the shoulder, lots of basic concept explanation and own hands on practice ... brilliant
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
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.
thx dude ! I had done my PHP ASSiGNMENT with this tutorial Love u dude hope all the best in the future ! SALUTE from Malaysia
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.
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
This is so excellent! Thank you so much for this vid, I'm learning a lot from you. And don't forget to encrypt
Amazing tutorial! It was super easy to follow, and I learned a lot! Thank you!
The "thats disappointing" part is very true .... Your videos are really helpfullllllllllllllll !!!!!!!!!!!!!!!!!!!!!!!
Awesome content and a very good instructor, you make it very fun and professional videos 'always' - thank you so much, Daniel.
I just migrated from python django, to php, This was a great first video.
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
If you get HTTP ERROR 405 just install PHP Server extension on Visual Studio Code and execute the PHP code with it and it will work!
(You execute it with a blue icon ubicated at the upper right corner of Visual Studio Code).
Hope this works for someone, I was stressing with this error but now it's solved!
Great Video Dani by the way, I love your way of teaching and the value you're providing to this community, you're amazing and thank you for your hard work...! You deserve more...!
Dani, this episode was pretty helpful, thank you for your efforts.
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!
when is the profile page tutorial comming up? i just watched the log in from 2018... so i am watching this one right now.
I hope this channel earns this guy well cause he deserves it!
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.
Yes I’m waiting
This is the best programming channel out there... Most other channels I'm gonna 'unsubscribe'
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.
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 ...
@@tiagomota4734 if you don't know what a function is you don't know programming at all xD watch a cs50 course or something
Around 12 hours - not in a row - studying the concepts during this amazing video. Thanks!
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)
Saaaameeee
Works perfectly! Tysm! Just wondering why you can't use OR (||) in your if statement for the different error messages? (I tried, and it seemed to just pickup if there was any error message. Mine is used to reopen the modal for my signup form, so wouldn't be good if it opened on EVERY error xD).
There are MANY ways to check for error messages, and it all just boils down to "which is more optimal for the specific situation". 🙂
Using || or && operators is also a way to do it and will work as well, however it can create very long and hard to read conditions. As well as the fact that you can't separate errors to get unique outcomes.
So it is all about knowing the pros and cons if you decide to do it differently, and then being able to defend "why you decided on that approach". 🙂 The only "wrong" thing to do, is to "not check if there is a better/cleaner way".
To the early squad: *May you and your family live long and stay healthy*
@amir sadeh k..^^
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.
Thank you so much. Your video saved my college project. Legend.
01:03:16 the small arrow character is called a 𝗰𝗮𝗿𝗲𝘁
Hi Dani, this is a great tutorial. Thank you so much for this. I have a request though. Many of us are learning to apply this knowledge in our projects. You said it yourself that this was only for beginners and not secure. It may not be practical for us to actually use it commercially.
Can you please make an advanced tutorial? One which we could rely on to use in our commercial or personal projects? Please?
I request you to make an advanced version of this tutorial to fulfil three requirements:
1: Make it using PHP 8
2: Make it secure and safe to be used commercially (as much as you can)
3: Make it by following object oriented principles instead of using procedural PHP
All of the tutorials on TH-cam are only useful for local servers and none of them are practical and useful in any meaningful way except learning as a beginner. I really hope you change that. :)
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
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:)
For anyone getting invalidUid or invalidEmail at signup, remember the '!' before preg_match and filter_var.
MY MAN! You fixed my problem!
Ayyyy thanks
many thanks man, I didn't notice that. Still isn't creating a user though...
Im from Africa 🌍 Nigeria 🇳🇬 and I'm a big fan of yours cause you have helped me alot. I love you man
When does the profile page episode go online? I need this one😅
Mee too
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
My data are not stored in the database,after submitted the signup page and there is no error. What is the problem behind this
This is also my problem right now. Have you find the solution sir? Please may I know what you did?
@@RustyV Hello, my issue is "usernametaken" when I submit a new user... Do u have a solution ? please
I’m having the same problem right now
you need to use "nd_mysqli" instead of "mysqli" in server settings
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!
may i ask why you didn't use input type="email" and input type="submit" ?
May be the CSS skin button tag and not "input[type=submit]"; or just to demonstate we can do that. (note : the default "type"for "button" tag is "submit") ;-)
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.
Hello great tutorial i just have two issues first being that in functions.inc.php i get $result; undefined variable and second is in signup.inc.php in nameExists i dont have uid so i just have it as nameExists it is telling me that there needs to be 3 expected arguments and i just have two $conn $name when i added for example $email issue did go away but i think it wont run as it supposed to so if you can help me thanks and if you cant either way thanks i will somehow find a solution :D
Same problem here don`t know what i missed
Honestly, this is the best programming tutorial i've ever wathced
Sir, I am getting this error in Visual studio even after correcting all syntax errors Please help me out :
Unexpected 'Name'. Expected ';'.intelephense(1001)
I have the same problem sir.
@@xhaiii same problem here too
Also it says empty fields error
same here only i'm having trouble with the $result. anyone?
@@supernovattm620 Define results as emoty string at the start of function $results=""
Didn't show error but warnings only in visual studio
Code will run even if you don't define result
Whenever I have to learn something in PHP, I first visit Dani's Video. If I can't find a video of what I am looking for, then and then I go to other TH-camrs' videos.
Do anyone know why $_POST dont get values from inputs and if i wrote everything properly? Thanks
i have also the same problem
Thank you. I have a working login system that makes sense to me. This was worth the several hours I spent following this video. I can't wait to learn more about sessions
Whenever I signup, it says invalid email even though it's a normal email.
you probably forgot the ! before "filter_var", i did that mistake XD
@@gabrielfranzini977 ya i found that out like an hour later lol.
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.
Does anyone have an issue when they press login, it's just a blank screen after and does not return to the homepage?
I had the same problem, I had lots of typo's in the end just check your url in wich part the problem stems, it helpend me alot
I just want to say That I Really Love how this man doing high quality and professional made work just for free.
I just Love How he's doing it.
where is your tutorial on profiles :(
Yes, where? I wonder too!
Its 3AM, and I just finished, anyway great tutorial, really helped alot.
You look like Elon Musk
I don't even know how to bless you man, all this for free
1:18:48
Exactly 69 lines...
nice
This saved my project....I can't thank you enough. And i actually start to understand how this stuff works. Gonna work my way now through all your vids. subscribed!
so no source code? guess I will have to dislike
Source code is available in the video description 🙂 No need for the passive aggressive tone, just move on to another persons channel if you dislike how I make my content.
@@Dani_Krossing so no free source code?
guess not, dislike it is
imagine being too lazy to code to a tutorial, A TUTORIAL, like honestly its disappointing how lazy people are these days
@@jamalmammadzada9413 imagine crying, I know that Africa needs water but you need to stop