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

Поділитися
Вставка
  • Опубліковано 13 вер 2024

КОМЕНТАРІ • 1,8 тис.

  • @PerryLai-q3p
    @PerryLai-q3p 2 роки тому +253

    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 роки тому +3

      true am just waiting for the profile page tutorial.

    • @anonnmuzik737
      @anonnmuzik737 2 роки тому +1

      @@12345629250 SAME!

    • @camswholesale2836
      @camswholesale2836 4 місяці тому

      Same, Dani appreciate the attention to detail!

  • @scott-richardson
    @scott-richardson 2 роки тому +34

    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 Рік тому +1

      Another off the shelf crap hater like me, Hello there !

    • @scott-richardson
      @scott-richardson Рік тому

      @@elgobert Hello friend!

    • @scott-richardson
      @scott-richardson Рік тому

      @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 роки тому +224

    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 роки тому +7

      I'm sure you thought that was a compliment because you're an American.

    • @AS_CAN
      @AS_CAN 3 роки тому +10

      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 3 роки тому +5

      @@AS_CAN there are accents and there is non-standard English, that;'s my big issue.

    • @loosabway3400
      @loosabway3400 3 роки тому +1

      Not sure we should classify 'American English' as being within the family of the English speaking world.

  • @DanielK48
    @DanielK48 3 роки тому +11

    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 !

  • @Dani_Krossing
    @Dani_Krossing  3 роки тому +289

    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 роки тому +4

      @@fboag I made my first steps in PHP a couple years ago with Danis free UA-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.

    • @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 роки тому +1

      @@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??

  • @jessigee9201
    @jessigee9201 2 роки тому +5

    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!

  • @yogeshc7241
    @yogeshc7241 3 роки тому +38

    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

  • @joshl1237
    @joshl1237 2 роки тому +1

    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!

  • @durgasutharsan5292
    @durgasutharsan5292 3 роки тому +34

    As a beginner in programming I appreciate you taking the time in explaining what every function is doing. I especially like the side notes 😁

  • @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  Рік тому +4

      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 UA-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.

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +2

      Ah my apologies for misunderstanding then hehe 🙂
      You are right. Most people on UA-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. 😊

    • @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.

  • @nomercy3422
    @nomercy3422 3 роки тому +290

    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 роки тому +65

      😈

    • @astigmatik
      @astigmatik 3 роки тому +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.

    •  3 роки тому +17

      @@kfizzle3920 not realy. You must do it atleast once to understand basics.

    • @boukhadc
      @boukhadc 3 роки тому +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 роки тому +1

      @@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.

  • @Dan_ny
    @Dan_ny 3 роки тому +66

    Really enjoyable 2 hours... sad to see there are no new related videos.

    • @coltonaallen
      @coltonaallen 3 роки тому +2

      @@Lwyrup1 who hurt you as a child?

  • @stormybear4986
    @stormybear4986 3 роки тому +8

    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.

  • @lifenote1943
    @lifenote1943 3 роки тому +7

    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.

  • @goldenemperor888
    @goldenemperor888 3 роки тому +12

    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 UA-camr.

    • @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!!

    • @goldenemperor888
      @goldenemperor888 Рік тому

      @tiago mota don't give up, it's just really tough to learn at first and you might need to follow a lot of UA-camrs to get it at first.

    • @tiagomota4734
      @tiagomota4734 Рік тому

      @@goldenemperor888 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!

  • @xyzqsrbo
    @xyzqsrbo 3 роки тому +9

    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

  • @ayushshukla1218
    @ayushshukla1218 3 роки тому +36

    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!!!!

  • @robloxflopsyyt7068
    @robloxflopsyyt7068 3 місяці тому

    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.

  • @milehigh8234
    @milehigh8234 3 роки тому +11

    This guy taught me everything I needed to know. He's worth listening to. Trust me

  • @adotinthecosmos
    @adotinthecosmos 3 роки тому +8

    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)

  • @matthewandersen8209
    @matthewandersen8209 3 роки тому +8

    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 😁👌🏽

  • @arattactician5697
    @arattactician5697 2 роки тому +8

    Finally got everything working. A fantastic tutorial, easy to follow and very well explained.
    Thank you for making it!

  • @ahmnicoleee
    @ahmnicoleee 3 роки тому +7

    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

  • @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.

  • @Ginfio
    @Ginfio 3 роки тому +13

    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.

  • @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.

  • @Madie-si6me
    @Madie-si6me 3 роки тому +9

    Best tutorial ever !! Hope to see how you do your Profile Page very soon.

  • @fondersonsivan9672
    @fondersonsivan9672 5 місяців тому +1

    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

  • @nils_b
    @nils_b 2 роки тому +14

    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

  • @sixtusushahemba9419
    @sixtusushahemba9419 2 роки тому +6

    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!

  • @sargentlemone8651
    @sargentlemone8651 2 роки тому +2

    It fells so incredible amazing if you finally find your little mistake after days of strugglin, your amazing keep doing those videos!!!

  • @berat02xz
    @berat02xz 3 роки тому +16

    literally the best tutorial and the most understood one ive seen.

  • @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!!!

  • @forhad1_
    @forhad1_ 3 роки тому +9

    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

  • @JoNarDLoLz
    @JoNarDLoLz 2 роки тому

    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

  • @nobleinexile4296
    @nobleinexile4296 3 роки тому +4

    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!

  • @ZchengYap
    @ZchengYap 3 роки тому +1

    thx dude ! I had done my PHP ASSiGNMENT with this tutorial Love u dude hope all the best in the future ! SALUTE from Malaysia

  • @kastore100
    @kastore100 3 роки тому +39

    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 роки тому +12

      Wow IBM has low standards.

    • @cl4ssychap883
      @cl4ssychap883 3 роки тому +7

      @@strangelpeaceful lmao you are so rude

    • @strangelpeaceful
      @strangelpeaceful 3 роки тому +6

      @@cl4ssychap883 I may be rude but at least I'm honest

    • @anisexpert4604
      @anisexpert4604 3 роки тому +1

      @@strangelpeaceful bro do you have any informations about IBM !

    • @eb4416
      @eb4416 3 роки тому +1

      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 ^^'

  • @mmelimahlobo7656
    @mmelimahlobo7656 Рік тому +2

    This is awesome I cannot believe its free,thank you very much❤

  • @fabianboro4686
    @fabianboro4686 3 роки тому +7

    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.

  • @thenaserov
    @thenaserov Рік тому +1

    I'm starting a website to sell my goods and I wrote my user login and sign up with this lovely video of yours!
    With no prier background of PHP!!!
    Thank you so much!!!!!!!!!!!

    • @Dani_Krossing
      @Dani_Krossing  Рік тому

      I'm glad you got it working 😊 However, I feel that it is important to let you know that this is a "teaching video", and not a production ready login system. 🙂 It serves only to help you learn the fundamentals of PHP.
      The video skips MANY security issues, and shouldn't be used without implementing those missing features. If you include the login system shown in this video, you are in risk of XXS attacks, session hijacking, missing error handling, CSRF attacks... just to mention a few.
      Building the login system in this video is definitely a big accomplishment. 😊 Just make sure you are aware that security is a BIG part of PHP. And if you are selling goods on a live website, it is important that you do so securily.
      Most PHP developers nowadays use a framework like Laravel, since it has build in security. We usually don't build PHP applications from scratch like in this video, since there are a lot of security to keep track of.

    • @thenaserov
      @thenaserov Рік тому

      @@Dani_Krossing thanks for your immediate response again!
      So I have to migrate the backend to a Laravel fw?
      My website is an online Tshirt designing and buying website that only needs two backend modules!
      One for users and the other for orders and designs which I'm willing to store them for my website as a history of users' design!
      Does it take a long time to implement it myself or should I pass this part to a professional like you my friend?
      If the second statement sound better IYO let's discuss elsewhere!!!

  • @plymouthhench1373
    @plymouthhench1373 2 роки тому +9

    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. :)

  • @Alireza-yw8yq
    @Alireza-yw8yq 3 роки тому

    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

  • @rangilamaurya6405
    @rangilamaurya6405 3 роки тому +19

    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.

  • @Am3lia1823
    @Am3lia1823 Рік тому

    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!

  • @jonmat7144
    @jonmat7144 3 роки тому +17

    Awesome content and a very good instructor, you make it very fun and professional videos 'always' - thank you so much, Daniel.

  • @Ohmygodzilla
    @Ohmygodzilla 3 роки тому

    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!

  • @oilfieldconnect6668
    @oilfieldconnect6668 3 роки тому +3

    Success, this is my perfect learning style, over the shoulder, lots of basic concept explanation and own hands on practice ... brilliant

  • @javaplays7172
    @javaplays7172 3 роки тому +2

    Its 3AM, and I just finished, anyway great tutorial, really helped alot.

  • @_mkeey1906
    @_mkeey1906 3 роки тому +6

    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 3 роки тому

      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

  • @elgobert
    @elgobert Рік тому

    I just migrated from python django, to php, This was a great first video.

  • @harpiesd96
    @harpiesd96 2 роки тому +3

    Amazing tutorial! It was super easy to follow, and I learned a lot! Thank you!

  • @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

  • @aliaghamiri4699
    @aliaghamiri4699 3 роки тому +4

    Dani, this episode was pretty helpful, thank you for your efforts.

  • @rohitshrestha9119
    @rohitshrestha9119 3 роки тому +1

    The "thats disappointing" part is very true .... Your videos are really helpfullllllllllllllll !!!!!!!!!!!!!!!!!!!!!!!

  • @teamomula
    @teamomula 3 роки тому +5

    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)

  • @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!

  • @blessingssinamane8516
    @blessingssinamane8516 3 роки тому +5

    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

  • @cientifica9150
    @cientifica9150 2 роки тому

    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...!

  • @maartenvanderlei88
    @maartenvanderlei88 3 роки тому +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.

  • @nv3796
    @nv3796 Рік тому +2

    This is the best programming channel out there... Most other channels I'm gonna 'unsubscribe'

  • @princealien6448
    @princealien6448 3 роки тому +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.

  • @Andrew-pd6ey
    @Andrew-pd6ey 3 роки тому +1

    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.

  • @CaptainAwesomeVlog
    @CaptainAwesomeVlog 3 роки тому +4

    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

  • @nikeshpatel1503
    @nikeshpatel1503 3 роки тому

    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 UA-camrs' videos.

  • @digitalminister5687
    @digitalminister5687 3 роки тому +5

    01:03:16 the small arrow character is called a 𝗰𝗮𝗿𝗲𝘁

  • @raskolnikov3799
    @raskolnikov3799 3 роки тому

    Genuinely some of the best tutorials I've been able to find on UA-cam.

  • @98kausar
    @98kausar 3 роки тому +6

    My data are not stored in the database,after submitted the signup page and there is no error. What is the problem behind this

    • @RustyV
      @RustyV 3 роки тому

      This is also my problem right now. Have you find the solution sir? Please may I know what you did?

    • @phoenixzeleph3490
      @phoenixzeleph3490 3 роки тому

      ​@@RustyV Hello, my issue is "usernametaken" when I submit a new user... Do u have a solution ? please

    • @muritalamuideen1947
      @muritalamuideen1947 2 роки тому

      I’m having the same problem right now

    • @borasavkar5997
      @borasavkar5997 Рік тому

      you need to use "nd_mysqli" instead of "mysqli" in server settings

  • @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?

  • @shargenezangana9320
    @shargenezangana9320 3 роки тому +4

    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.

  • @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

  • @furiusfighter3415
    @furiusfighter3415 3 роки тому +4

    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

  • @gabrielfono844
    @gabrielfono844 3 роки тому +1

    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

  • @Knuddelfell
    @Knuddelfell 3 роки тому +24

    To the early squad: *May you and your family live long and stay healthy*

  • @carlosmaralit8784
    @carlosmaralit8784 Рік тому +1

    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:)

  • @fabianbeck9567
    @fabianbeck9567 3 роки тому +10

    When does the profile page episode go online? I need this one😅

  • @stepup6178
    @stepup6178 2 роки тому

    I don't even know how to bless you man, all this for free

  • @tkokflux6322
    @tkokflux6322 3 роки тому +4

    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

    • @JohnDoe-oy1nm
      @JohnDoe-oy1nm 3 роки тому

      Same problem here don`t know what i missed

  • @pseuda
    @pseuda 2 роки тому

    Around 12 hours - not in a row - studying the concepts during this amazing video. Thanks!

  • @sandeepbharadwaj8098
    @sandeepbharadwaj8098 3 роки тому +4

    Sir, I am getting this error in Visual studio even after correcting all syntax errors Please help me out :
    Unexpected 'Name'. Expected ';'.intelephense(1001)

    • @xhaiii
      @xhaiii 3 роки тому

      I have the same problem sir.

    • @neelpatel55
      @neelpatel55 3 роки тому

      @@xhaiii same problem here too
      Also it says empty fields error

    • @supernovattm620
      @supernovattm620 3 роки тому +1

      same here only i'm having trouble with the $result. anyone?

    • @neelpatel55
      @neelpatel55 3 роки тому +1

      @@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

  • @GabrielSilva-yk6sk
    @GabrielSilva-yk6sk 3 роки тому

    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!

  • @retardedguy9847
    @retardedguy9847 3 роки тому +5

    I finished watching the other video regarding this that had been made like 2byears ago😂

  • @dragonking45
    @dragonking45 3 роки тому +1

    Thank you so much. Your video saved my college project. Legend.

  • @sebastianmircea3856
    @sebastianmircea3856 3 роки тому +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...

  • @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!

  • @zindovic8721
    @zindovic8721 3 роки тому +4

    Do anyone know why $_POST dont get values from inputs and if i wrote everything properly? Thanks

  • @9core
    @9core 2 роки тому

    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.

  • @jeckatz
    @jeckatz 3 роки тому +7

    may i ask why you didn't use input type="email" and input type="submit" ?

    • @tigidou3344
      @tigidou3344 3 роки тому

      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") ;-)

  • @memez227
    @memez227 2 роки тому

    I hope this channel earns this guy well cause he deserves it!

  • @tribitx
    @tribitx 3 роки тому +9

    Whenever I signup, it says invalid email even though it's a normal email.

    • @gabrielfranzini977
      @gabrielfranzini977 3 роки тому +5

      you probably forgot the ! before "filter_var", i did that mistake XD

    • @tribitx
      @tribitx 3 роки тому +2

      @@gabrielfranzini977 ya i found that out like an hour later lol.

  • @kumar-manoj
    @kumar-manoj 3 роки тому +1

    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.

  • @claudedupont4281
    @claudedupont4281 3 роки тому +6

    where is your tutorial on profiles :(

  • @UmarMunir94
    @UmarMunir94 3 роки тому +1

    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 UA-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. :)

  • @lukea8053
    @lukea8053 3 роки тому +5

    Does anyone have an issue when they press login, it's just a blank screen after and does not return to the homepage?

    • @gerrit8035
      @gerrit8035 3 роки тому

      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

  • @texasforslund7934
    @texasforslund7934 Рік тому

    Thank you sooooo much, it works great and you get a rush after finishning the project!

  • @martinsb6474
    @martinsb6474 Рік тому +5

    You look like Elon Musk

  • @michaelbarron6687
    @michaelbarron6687 Рік тому +1

    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.

  • @mikesantiago2492
    @mikesantiago2492 3 роки тому +4

    1:18:48
    Exactly 69 lines...

  • @ganiyumubarak4270
    @ganiyumubarak4270 2 роки тому

    I love the method of teaching. I've watched some of your tutorials movies on UA-cam and helps me a lot. Actually, there are a lot of tutorials movies on UA-cam but yours is difference and the best.

  • @rubenoosting5739
    @rubenoosting5739 2 роки тому +4

    so no source code? guess I will have to dislike

    • @Dani_Krossing
      @Dani_Krossing  2 роки тому

      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.

    • @rubenoosting5739
      @rubenoosting5739 2 роки тому +2

      @@Dani_Krossing so no free source code?

    • @rubenoosting5739
      @rubenoosting5739 2 роки тому +1

      guess not, dislike it is

    • @jamalmammadzada9413
      @jamalmammadzada9413 2 роки тому

      imagine being too lazy to code to a tutorial, A TUTORIAL, like honestly its disappointing how lazy people are these days

    • @rubenoosting5739
      @rubenoosting5739 2 роки тому +1

      @@jamalmammadzada9413 imagine crying, I know that Africa needs water but you need to stop