PHP Login System Tutorial with MYSQL

Поділитися
Вставка
  • Опубліковано 9 сер 2021
  • In this lesson we'll be covering how to create a login and register system in PHP with associated MySQL database! This tutorial is aimed at beginners, but we'll cover several topics along the way such as PHP sessions, PHP data sanitization, cookies, form error messages, and more.
    💖 SUBSCRIBE (Please) 💖
    ua-cam.com/users/FollowAndrew?s...
    STARTING FILES:
    github.com/wilsmex/edu/tree/m...
    #php #login #system #mysql

КОМЕНТАРІ • 49

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

    Some programming for today, plus a double intro! What do you want to see next?

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

      maybe a simple MVC with TASK NOTE PROJECT with USER ROLE access

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

      I'm watching this one because it's over a year since I worked PHP and MYSQL. My older machine had pre 8.1 PHP installed is 8.0 or 8.1 and my old project isn't playing nice to the changes (at least that's my guess as it works fine on the older computer with the older installation).

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

    So glad I found this video! I'm only 20 minutes in, and I already appreciate it so much. You have a clear and understandable teaching style, and it's nice to see some up to date PHP tutorials. Thanks!

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

    I just wanted to say thank you so much. I've seen all of your css tutorials.

  • @Ali-lt1kb
    @Ali-lt1kb 2 роки тому +1

    Thank you for the awesome tutorial! you explained everything very well and didn't leave anything vague.

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

    Excellent video, I was actually looking for something like this. Thanks for sharing

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

    You are great man, I loved it, even it was easy to understand, so I did it without any error! Thnaks man.

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

    Learned SO much! Thank you for sharing, God bless! Already subscribed.

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

    You, sir, are an awesome teacher!

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

    Awesome tutorial! Learned a lot!

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

    Thank you bro this is the best login system I've seen on the youtube💯💯💯💯

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

    I am subscribing now, thank you for this Andrew :)

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

    This was great. Thank you and subbed.

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

    Awesome video. Thank you!

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

    Thank you for this video, excellent.

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

    Thanks for another great tutorial. It would be good to follow-up this tutorial with how to add email verification which would also work well with your other tutorial on Form with validation and email sending. I look forward to the possibility. Also, very surprised you don’t get more views and likes. Thanks again

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

    Amazing!!!!! Thanks a lot!!! You are the best!!!!!!

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

    Perfect. Thank you!

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

      What are there vulnerabilities of leaving the username/password in the php code?

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

    This is a great tutorial, i like the clear explanation., need to update some functions like SANITIZERS which deprecated

  • @tymiller2596
    @tymiller2596 2 місяці тому

    Great work

  • @user-ys3uu5un6l
    @user-ys3uu5un6l Рік тому

    Thank you!

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

    Nice one!

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

    Thank you

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

    I just subscribed; love your channel; it is easy to follow ... Thanks for the videos. I'd love to watch 'EZproxy: Access and authentication software' if you could make one. much appreciated.

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

    Can you please make a video on Complementary in css

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

    Please continui php tutorials

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

    Thanks

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

    It still a Great tutorial Andrew, after a year or so ... but I have a problem with the hashed password, the code couldn't match any password.
    Edit: the reason was the password field was very short, I changed it to length 255 worked like charm :)

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

    Thank you so much it was great the best toturial i have seen.
    Just one thing my $_SESSION['user'][userid'] = $row['ID'] did not work it gives an error.

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

      I know I'm late to this party but what worked for me finally was. echo " Welcome User: ".($_SESSION['user']['name'])."";

  • @dollysnow8558
    @dollysnow8558 Місяць тому

    i'm having a hard time getting users registered. It does show if an account/email already exists so it's connecting to mysql database. i've watched this 3 times to see if i have errors and not finding any. anyone have advice?

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

    Real you do I great job but should share your code because may face problems and we can't fix
    I face problem in inserting user to database took all day in this point at last I changed code in try method

  • @zZ-Wipeout-Zz
    @zZ-Wipeout-Zz 2 роки тому +1

    the password_verify just constantly gives me a "Wrong Email or password " error even when the password is correct :(

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

      same any fix?

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

      @@lukekelly1934 nope

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

      From my experience the problem for password_verify() "not working" is that the field in the database is too small to hold a password hash - for the default bcrypt hashing method it needs to be at least 60 characters (personally I recommend making it a varchar(255) to support future hashing methods that may use longer hashes).

  • @ShahzaibKhan-wh5hh
    @ShahzaibKhan-wh5hh 2 роки тому +1

    sir please make a php mysqli prepare statement registration system add remember me with phpMailer class email send link click after registration and forgot password gmail link send use ui bootstrap 5 error message bootstrap not use oops and pdo

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

    I think this was about login validation...but I couldn't read the code, it was so blurry and 'tiny'. I finally used a large rectangle magnifying glass my GrandMother left me.

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

      He has links to the start of the code at least which helped. The rest you had to follow along with and then hope no changes in how the PHP was handled by your version.

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

      Turn up your resolution level to 720p, it seems pretty clear with that.

  • @cbbcbb6803
    @cbbcbb6803 8 місяців тому

    XAMPP workes Linux, MAC, and Windows. Mampp seems to obsessively refuse to work with Linux. Only with Mac and Windows. Inexcusable!

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

    How to enable http2 or http3 ua-cam.com/video/0vYiLXJCNfg/v-deo.html

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

    PDO